Bug #1324

Updated by Kelley-Hoskins Nathan over 10 years ago


Ran into a problem where saving a parameter in ctselect was not working. If you give a parameter a number with more that 6 digits of precision, they get rounded to 6. You can reproduce it with the following commands:

$ python
>>> import ctools
>>> sel = ctools.select()
>>> sel['tmin'].real(1234567.89)
>>> print sel['tmin'].real()
1234570.0
>>> sel['tmin'].real(3.546546465e9)
>>> print sel['tmin'].real()
3546550000.0

I was hoping to set tmin and tmax to something larger (i.e. some 9- or 10-digit-precision time in seconds in veritas's MET time), but this prevents me.

Back