Skip to content

Problems with match() (flooding/drying) #506

@ducvi

Description

@ducvi

Hi,

I'm experiencing a bug with the match() function. Sometimes, I get an error in the function_get_global_start_end() defined in matching.py. My understanding is that this function checks the begin and end times of the model results passed to it and defines those as the "period" to match the observations.

When trying to match, I sometimes get an AssertionError in the following line:

assert all([len(x) > 0 for x in idxs])

The model results are of type DfsuModelResult and the observations are of type PointObservation. Both have well-defined start and end times, but they do not overlap perfectly.

Is there something I'm missing here?

Best regards,

Victor

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions