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
In my case I have multiple DfsuModelResults that I am matching with multiple observations
cc = ms.match(obs_list, mr_list)
It goes fine, until I added a DummyModelResult to the mr_list. I assume that it should be enough to add DummyModelResult to the safe list below.
ValueError Traceback (most recent call last)
Cell In[26], line 1
----> 1 cc = ms.match(obs, mrs)
2 cc
File ~\Source\modelskill\modelskill\matching.py:255, in match(obs, mod, obs_item, mod_item, gtype, max_model_gap, spatial_method) 253 if len(obs) > 1 and isinstance(mod, Collection) and len(mod) > 1: 254if not all(isinstance(m, (DfsuModelResult, GridModelResult)) for m in mod):
--> 255 raise ValueError(
The text was updated successfully, but these errors were encountered:
jsmariegaard
changed the title
MultiModel-MultiObs match fails if
MultiModel-MultiObs match fails with DummyModelResult
Apr 11, 2024
In my case I have multiple DfsuModelResults that I am matching with multiple observations
It goes fine, until I added a DummyModelResult to the mr_list. I assume that it should be enough to add DummyModelResult to the safe list below.
ValueError Traceback (most recent call last)
Cell In[26], line 1
----> 1 cc = ms.match(obs, mrs)
2 cc
File ~\Source\modelskill\modelskill\matching.py:255, in match(obs, mod, obs_item, mod_item, gtype, max_model_gap, spatial_method)
253 if len(obs) > 1 and isinstance(mod, Collection) and len(mod) > 1:
254 if not all(isinstance(m, (DfsuModelResult, GridModelResult)) for m in mod):
--> 255 raise ValueError(
The text was updated successfully, but these errors were encountered: