modelskill icon indicating copy to clipboard operation
modelskill copied to clipboard

MultiModel-MultiObs match fails with DummyModelResult

Open jsmariegaard opened this issue 10 months ago • 0 comments

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: 254 if not all(isinstance(m, (DfsuModelResult, GridModelResult)) for m in mod): --> 255 raise ValueError(

jsmariegaard avatar Apr 11 '24 08:04 jsmariegaard