hydpy-dev / hydpy

A framework for the development and application of hydrological models based on Python
GNU Lesser General Public License v3.0
35 stars 17 forks source link

Parameter `UH` of application model `rconc_uh` does not always update the shape of the log sequence `QUH` when expected. #144

Closed tyralla closed 3 months ago

tyralla commented 4 months ago

Currently, this fails:

from hydpy.models.hland_v1 import *
parameterstep()
with model.add_rconcmodel_v1("rconc_uh"):
    uh([0.3,0.4,0.3])
    logs.quh = 0.0, 0.0, 0.0  # hydpy.core.exceptiontools.AttributeNotReady: While trying to set the value(s) of variable `quh`, the following error occurred: Shape information for variable `quh` can only be retrieved after it has been defined.

This is inconvenient and, if I am correct, a bug that makes using the functionality of defining individual ordinates impossible in real project configurations.

tyralla commented 3 months ago

Fixed by #145.