Skip to content

Commit

Permalink
correcting additional issues with sample #41
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnmjones committed Sep 9, 2021
1 parent 5f326e2 commit 8628842
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hypercane/args/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
subparsers = sample_parser.add_subparsers(help='sampling methods', dest='sampling method (e.g., true-random, dsa1)')
subparsers.required = True

# custom algorithms are listed first
if sys.platform != "win32":
# assumes all other platforms support shell scripts
# recall that we cannot use a function to handle duplicate arguments because Wooey does not appear to support it
Expand Down Expand Up @@ -72,7 +73,7 @@
sys.exit(errno.EINVAL)

if user_algorithm_dir in script_path:
helptext += " (custom user algorithm)"
helptext += " (algorithm from {})".format(script_path)

custom_script_data[algorithm_name] = {
'script_path': script_path,
Expand All @@ -90,6 +91,7 @@
script_path=custom_script_data[algorithm_name]['script_path']
)

# probabilistic algorithms are listed after
truerandom_parser = subparsers.add_parser('true-random', help="sample probabilistically by randomly sampling k mementos from the input")
truerandom_parser.set_defaults(
which='true-random',
Expand Down

0 comments on commit 8628842

Please sign in to comment.