AI4S2S / s2spy

A high-level python package integrating expert knowledge and artificial intelligence to boost (sub) seasonal forecasting
https://ai4s2s.readthedocs.io/
Apache License 2.0
20 stars 7 forks source link

intransparent error message detected #156

Open semvijverberg opened 1 year ago

semvijverberg commented 1 year ago

When running RGDR.fit() with one of the inputs being a xr.Dataset instead of an xr.DataArray, it returns the following error message: AssertionError: Field and target dims do not match

We could check for dtype instead and return an appropriate error. I think this is an easy mistake to make, as the resample returns a dataset even though you insert an xr.DataArray (any reason to do so?).