colinsheppard/insalmo-instream-gui — Issue #32: Boolean variables should be 0, 1; not YES NO
Author: SFRailsback
Created: 2012-01-23 19:22:12+00:00
State: open

The model code seems not to recognize "YES" as true, even though it doesn't give an error when a BOOL is set to YES or NO.

I think the best solution is just require all boolean variables to have values of 0 or 1.
However:
- Observer.Setup has a variable takeRasterPictures that appears boolean BUT it's described in the doc. as "text" and takes values of YES or NO. Leave it be, I guess.
- Experiment.Setup booleans can be YES, NO, 0, 1.

I see that if you are in the Experiment menu and add a boolean model parameter (e.g., appendFiles) to an experiment, the GUI puts in default values of "0". That *should* work.