mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 10:46:26 +00:00
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:
parent
90eb381987
commit
cde7c02d22
@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user