Skip to content

Commit a0cc704

Browse files
committed
Fixed argument parsing
1 parent 6c1c100 commit a0cc704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/synapse_marker_detection/marker_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main():
1313
parser.add_argument("-m", "--model", required=True, help="Path to synapse detection model.")
1414
parser.add_argument("-k", "--input_key", default=None,
1515
help="Input key for image data and mask data for marker detection.")
16-
parser.add_argument("-d", "--max_distance", default=20,
16+
parser.add_argument("-d", "--max_distance", type=float, default=20,
1717
help="The maximal distance for a valid match of synapse markers to IHCs.")
1818

1919
parser.add_argument("--s3", action="store_true", help="Use S3 bucket.")
@@ -40,7 +40,7 @@ def main():
4040
mask_path = args.mask
4141

4242
marker_detection(input_path=input_path, input_key=args.input_key, mask_path=mask_path,
43-
output_folder=args.output_folder, model_path=args.model)
43+
output_folder=args.output_folder, model_path=args.model, max_distance=args.max_distance)
4444

4545

4646
if __name__ == "__main__":

0 commit comments

Comments
 (0)