mirror of
https://github.com/nasa/trick.git
synced 2025-01-06 13:18:46 +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
ca16b18e70
commit
ba4df3387f
@ -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