Open MelchiorUU opened 2 years ago
Ironically it seems that this bug is the result of the half fix that has been made after one of my previous reports: https://github.com/Repast/repast.simphony/commit/3d94293b92e56980793adb2893be34fb34e4f283
The initial setting of the parameter works, the error only happens on reset. I guess that is due to what is used for initialization:
double val = ((Number) params.getValue(name)).doubleValue();
...
SpinnerModel spinModel = new SpinnerNumberModel(val, min, max, spacing);
But that would imply that the spinner always converts things to double and putting float in paramters.xml is pointless for spinners ;-).
Repast 2.9
I implemented a float range in the parameters for the GUI:
Which gives the following error msg when I reset the run:
When looking at FPRangeParameterBinder.java:64 we see that it indeed expects a double and that there is no code of setting a float.