Skip to content

Commit 0409d17

Browse files
committed
Small fixes
1 parent 6785be2 commit 0409d17

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

flamingo_tools/postprocessing/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def label_components():
2525
help="Minimal length for filtering out connected components.")
2626
parser.add_argument("--max_edge_distance", type=float, default=30,
2727
help="Maximal distance in micrometer between points to create edges for connected components.")
28-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of connected components.")
28+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of connected components.")
2929

3030
# options for S3 bucket
3131
parser.add_argument("--s3", action="store_true", help="Flag for using S3 bucket.")
@@ -41,7 +41,7 @@ def label_components():
4141

4242
label_components_single(
4343
table_path=args.input,
44-
output_path=args.output,
44+
out_path=args.output,
4545
cell_type=args.cell_type,
4646
component_list=args.components,
4747
max_edge_distance=args.max_edge_distance,
@@ -66,7 +66,7 @@ def tonotopic_mapping():
6666

6767
# options for tonotopic mapping
6868
parser.add_argument("--animal", type=str, default="mouse",
69-
help="Animyl type to be used for frequency mapping. Either 'mouse' or 'gerbil'.")
69+
help="Animal type to be used for frequency mapping. Either 'mouse' or 'gerbil'.")
7070
parser.add_argument("--otof", action="store_true", help="Use frequency mapping for OTOF cochleae.")
7171
parser.add_argument("--apex_position", type=str, default="apex_higher",
7272
help="Use frequency mapping for OTOF cochleae.")
@@ -76,7 +76,7 @@ def tonotopic_mapping():
7676
help="Cell type of segmentation. Either 'sgn' or 'ihc'.")
7777
parser.add_argument("--max_edge_distance", type=float, default=30,
7878
help="Maximal distance in micrometer between points to create edges for connected components.")
79-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of connected components.")
79+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of connected components.")
8080

8181
# options for S3 bucket
8282
parser.add_argument("--s3", action="store_true", help="Flag for using S3 bucket.")
@@ -92,7 +92,7 @@ def tonotopic_mapping():
9292

9393
tonotopic_mapping_single(
9494
table_path=args.input,
95-
output_path=args.output,
95+
out_path=args.output,
9696
force_overwrite=args.force,
9797
animal=args.animal,
9898
otof=args.otof,
@@ -122,7 +122,7 @@ def object_measures():
122122
parser.add_argument("--force", action="store_true", help="Forcefully overwrite output.")
123123

124124
# options for object measures
125-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of components.")
125+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of components.")
126126
parser.add_argument("-r", "--resolution", type=float, nargs="+", default=[0.38, 0.38, 0.38],
127127
help="Resolution of input in micrometer.")
128128
parser.add_argument("--bg_mask", action="store_true", help="Use background mask for calculating object measures.")

reproducibility/label_components/repro_label_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def wrapper_label_components(
2525
and the explicit setting of parameters.
2626
"""
2727
if ddict is None:
28-
label_components_single(table_path, output_path, s3=s3, **kwargs)
28+
label_components_single(table_path, out_path=output_path, s3=s3, **kwargs)
2929
else:
3030
param_dicts = _load_json_as_list(ddict)
3131
for params in param_dicts:
@@ -64,7 +64,7 @@ def main():
6464
help="Minimal length for filtering out connected components.")
6565
parser.add_argument("--max_edge_distance", type=float, default=30,
6666
help="Maximal distance in micrometer between points to create edges for connected components.")
67-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of connected components.")
67+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of connected components.")
6868

6969
# options for S3 bucket
7070
parser.add_argument("--s3", action="store_true", help="Flag for using S3 bucket.")

reproducibility/object_measures/repro_object_measures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def main():
9999
parser.add_argument("--force", action="store_true", help="Forcefully overwrite output.")
100100

101101
# options for object measures
102-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of components.")
102+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of components.")
103103
parser.add_argument("-r", "--resolution", type=float, nargs="+", default=[0.38, 0.38, 0.38],
104104
help="Resolution of input in micrometer.")
105105
parser.add_argument("--bg_mask", action="store_true", help="Use background mask for calculating object measures.")

reproducibility/tonotopic_mapping/repro_tonotopic_mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def wrapper_tonotopic_mapping(
3636
otof: Use mapping by *Mueller, Hearing Research 202 (2005) 63-73* for OTOF cochleae.
3737
"""
3838
if ddict is None:
39-
tonotopic_mapping_single(table_path, output_path, animal=animal, ototf=otof, force_overwrite=force_overwrite,
39+
tonotopic_mapping_single(table_path, out_path=output_path, animal=animal, ototf=otof, force_overwrite=force_overwrite,
4040
s3=s3, **kwargs)
4141
else:
4242
param_dicts = _load_json_as_list(ddict)
@@ -82,7 +82,7 @@ def main():
8282

8383
# options for tonotopic mapping
8484
parser.add_argument("--animal", type=str, default="mouse",
85-
help="Animyl type to be used for frequency mapping. Either 'mouse' or 'gerbil'.")
85+
help="Animal type to be used for frequency mapping. Either 'mouse' or 'gerbil'.")
8686
parser.add_argument("--otof", action="store_true", help="Use frequency mapping for OTOF cochleae.")
8787
parser.add_argument("--apex_position", type=str, default="apex_higher",
8888
help="Use frequency mapping for OTOF cochleae.")
@@ -92,7 +92,7 @@ def main():
9292
help="Cell type of segmentation. Either 'sgn' or 'ihc'.")
9393
parser.add_argument("--max_edge_distance", type=float, default=30,
9494
help="Maximal distance in micrometer between points to create edges for connected components.")
95-
parser.add_argument("-c", "--components", type=str, nargs="+", default=[1], help="List of connected components.")
95+
parser.add_argument("-c", "--components", type=int, nargs="+", default=[1], help="List of connected components.")
9696

9797
# options for S3 bucket
9898
parser.add_argument("--s3", action="store_true", help="Flag for using S3 bucket.")

0 commit comments

Comments
 (0)