modelskill icon indicating copy to clipboard operation
modelskill copied to clipboard

Flexible error handling of empty comparers

Open ecomodeller opened this issue 9 months ago • 0 comments

This PR introduces flexible error handling for cases where observations and model results do not overlap. It adds a new parameter, obs_no_overlap, to the match function and related methods, allowing users to specify whether to ignore, raise an error, or issue a warning when no overlap is found.

This makes it easier for the end-user but the current implementation adds complexity by returning None from several methods. A more elegant solution would be to use the Null object pattern.

ecomodeller avatar Mar 11 '25 19:03 ecomodeller