Use 1/0 instead of True/False in TVBoolean.java

The use of True/False prevents the plotting of booleans, as those values
cannot be parsed as doubles. While it's conceptually more pleasing to
use the actual Python keywords for booleans, numbers will work just as
well and allow plotting. #337
This commit is contained in:
Derek Bankieris 2016-10-26 13:38:58 -05:00
parent ca16b18e70
commit ba4df3387f

View File

@ -23,7 +23,7 @@ public class TVBoolean extends VSBoolean implements TrickViewFluent<TVBoolean.Fo
Boolean {
public String format(boolean value) {
return value ? "True" : "False";
return value ? "1" : "0";
}
};