ulisesrey / imutils

0 stars 6 forks source link

stack_subtract_background parser does not work with boolean argument -invert #8

Open ulisesrey opened 1 year ago

ulisesrey commented 1 year ago

Whatever you do the parser in imutils_partser.py for "stack_subtract_background" argument --invert evaluates to True. I was able to use the code until now because I used cluster_jobs where do_inverse was within python, see https://github.com/Zimmer-lab/cluster_jobs/blob/master/stack_subtract_background.sh#L52 I should use this: https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse