Skip to content

Commit

Permalink
Adding default arg to RunUseCase for issue 593
Browse files Browse the repository at this point in the history
  • Loading branch information
jadie1 committed Sep 14, 2020
1 parent 2fda819 commit 88cf9b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Examples/Python/RunUseCase.py
Expand Up @@ -29,14 +29,15 @@
# Default installation path for each platform. If using your own build, specify --shapeworks_path
default_binpath = "../../bin"
if platform.system() == "Windows":
default_binpath = "C:\\Program Files\ShapeWorks\\bin"
default_binpath = "C:\\Program Files\\ShapeWorks\\bin"
if platform.system() == "Darwin":
default_binpath = "/Applications/ShapeWorks/bin:/Applications/ShapeWorks/bin/ShapeWorksStudio.app/Contents/MacOS"
default_subsample = 3

parser = argparse.ArgumentParser(description='Example ShapeWorks Pipeline')
parser.add_argument("--use_case", help="Specify which use case to run",
choices=["ellipsoid", "ellipsoid_fd", "lumps", "left_atrium", "femur", "femur_mesh"])
parser.add_argument("--use_subsample", help="Set number of samples to run the pipeline for a subset of data.")
parser.add_argument("--use_subsample", help="Set number of samples to run the pipeline for a subset of data (default: "+str(default_subsample)+")",nargs='?', type=int, default=default_subsample)
parser.add_argument("--interactive", help="Run in interactive mode", action="store_true")
parser.add_argument("--start_with_prepped_data", help="Start with already prepped data", action="store_true")
parser.add_argument("--start_with_image_and_segmentation_data", help = "use images and segmentations data for preprocessing", action="store_true")
Expand Down

0 comments on commit 88cf9b4

Please sign in to comment.