You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import xarray as xr
ds = xr.open_dataset("geo.slf", engine="selafin")
and I get the following error message:
Traceback (most recent call last):
File "/home/sebourban/opentelemac/test.py", line 2, in <module>
ds = xr.open_dataset("geom_world06_stb.slf", engine="selafin")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sebourban/opentelemac/bin/miniforge/envs/otm-env/lib/python3.12/site-packages/xarray/backends/api.py", line 573, in open_dataset
backend_ds = backend.open_dataset(
^^^^^^^^^^^^^^^^^^^^^
File "/home/sebourban/opentelemac/bin/miniforge/envs/otm-env/lib/python3.12/site-packages/xarray_selafin/xarray_backend.py", line 272, in open_dataset
times = [datetime(*slf.header.date) + timedelta(seconds=t) for t in slf.time]
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: datetime.datetime() argument after * must be an iterable, not NoneType
When I try on a time varying file I get : Format "" is unknown and is forced to "SERAFIN "
but maybe this is OK - just a little odd to confirm that I have a SERAFIN when I know I do ..
You probably know the answer already ? thanks for looking into it.
Sébastien.
The text was updated successfully, but these errors were encountered:
@sebourban
try to pip install xarray-selafin again and let us know if your problem was solved with the latest fix
check maybe if you have the right version: it should be 0.1.4
Hello,
I tried loading a geometry file using
and I get the following error message:
When I try on a time varying file I get :
Format "" is unknown and is forced to "SERAFIN "
but maybe this is OK - just a little odd to confirm that I have a SERAFIN when I know I do ..
You probably know the answer already ? thanks for looking into it.
Sébastien.
The text was updated successfully, but these errors were encountered: