I created a new environment today and had issues with some code I have previously written due to some datetime problems. The new environment I created was using python=3.8 and arm_pyart=1.12.5 installed via conda-forge. I'm not sure if it's related to this fix #1185
>>> radar_date = pyart.util.datetime_from_radar(radar)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\ProgramData\Anaconda3\envs\cftime_error\lib\site-packages\pyart\util\datetime_utils.py", line 21, in datetime_from_radar
return num2date(radar.time['data'][0], radar.time['units'],
File "src\cftime\_cftime.pyx", line 584, in cftime._cftime.num2date
File "src\cftime\_cftime.pyx", line 382, in cftime._cftime.cast_to_int
TypeError: '<' not supported between instances of 'numpy.longdouble' and 'int'
I was able to replicate on another machine, can you replicate on your end? Seems like pyart version 1.12.4 doesn't have the same issue
I created a new environment today and had issues with some code I have previously written due to some datetime problems. The new environment I created was using python=3.8 and arm_pyart=1.12.5 installed via conda-forge. I'm not sure if it's related to this fix #1185
Here is example code that produces the error
And this is the error that it produces
I was able to replicate on another machine, can you replicate on your end? Seems like pyart version 1.12.4 doesn't have the same issue