Skip to content

Commit 4733010

Browse files
committed
fix: stratLog index wasn't showing all data
1 parent 97598dc commit 4733010

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

LoopProjectFile/ExtractedInformation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ def SetStratigraphicLog(root, data, thickness_calculator_data=None, append=False
327327
for i in data:
328328
stratigraphicLayersLocation[index] = i
329329
index += 1
330+
siGroup.setncattr("index_MaxValid", index)
331+
330332
# Write thickness calculator data (must match expected structure)
331333
if thickness_calculator_data:
332334
# Check that each entry is a tuple/list of length 5
@@ -338,7 +340,6 @@ def SetStratigraphicLog(root, data, thickness_calculator_data=None, append=False
338340
return {"errorFlag": True, "errorString": errStr}
339341
# Convert the first (and only) tuple to a structured array
340342
structured_data = numpy.array([thickness_calculator_data[0]], dtype=LoopProjectFile.thicknessCalculatorType)
341-
342343
# Assign only the first structured row
343344
thickness_calculator[:] = structured_data[0]
344345

0 commit comments

Comments
 (0)