Skip to content
Snippets Groups Projects
Commit 8b7e2a26 authored by pswain's avatar pswain
Browse files

cosmetic changes

parent 9ae96baf
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,6 @@ def add_bud_fluorescence(h5dirpath, signals=["/extraction/GFP/max/median"]):
The signals to find for the buds as paths in the h5 file.
E.g. ["/extraction/GFP/max/median", "/extraction/mCherry/max/median"]
"""
# add new bud_metrics to params
params = PostProcessorParameters.default()
params_dict = params.to_dict()
......@@ -28,12 +27,10 @@ def add_bud_fluorescence(h5dirpath, signals=["/extraction/GFP/max/median"]):
print("\t", signal)
params_dict["targets"]["processes"].append(["bud_metric", [signal]])
new_params = params.from_dict(params_dict)
# find h5 files
if isinstance(h5dirpath, str):
h5dirpath = Path(h5dirpath)
h5files = [f.name for f in h5dirpath.glob("*.h5") if f.is_file()]
# re-run postprocessing for each file
for h5file in h5files:
filepath = Path(h5dirpath / h5file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment