Skip to content
Snippets Groups Projects
Commit 790f4c6f authored by polarbean's avatar polarbean
Browse files

make propagation optional

parent 8159ae83
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ def load_segmentation(segmentation_path: str):
# related to read and write
# this function reads a VisuAlign JSON and returns the slices
def load_quint_json(filename):
def load_quint_json(filename, propagate_missing_values=True):
"""
Reads a VisuAlign JSON file (.waln or .wwrp) and extracts slice information.
Slices may include anchoring, grid spacing, and other image metadata.
......@@ -213,7 +213,7 @@ def load_quint_json(filename):
else:
slices = vafile["slices"]
if len(slices) > 1:
if (len(slices) > 1) & propagate_missing_values:
slices = propagate(slices)
vafile["slices"] = slices
return vafile
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment