Skip to content

Calibration of loading efficiency values #185

Description

@MattBrst

Today I tried to calibrate on the loading efficiency with:

 cal.set_aquifer_parameter(
            "leffaq",
            layers=[1],
            initial=leffaq1_river,
            pmin=0,
            pmax=1,
            log_scale=True,
            inhoms=("river"),
            model="transient",
        )

But this results in: ValueError: Parameter 'leffaq' not recognised. Supported: ['kaq', 'c', 'Saq', 'Sll', 'kzoverkh']

So I guess we would need to add leffaq and leffll in this block:

timflow/timflow/calibrate.py

Lines 1381 to 1396 in 882bc67

def _get_aquifer_parameter_array(model, aq, name: str) -> np.ndarray:
"""Return reference to the appropriate parameter array in the aquifer object."""
lookup = {"kaq": aq.kaq, "c": aq.c}
if hasattr(aq, "Saq"):
lookup["Saq"] = aq.Saq
if hasattr(aq, "Sll"):
lookup["Sll"] = aq.Sll
if hasattr(aq, "kzoverkh"):
lookup["kzoverkh"] = aq.kzoverkh
assert aq.model == model, "Aquifer does not belong to the given model"
for prefix, arr in lookup.items():
if name.startswith(prefix):
return arr
raise ValueError(
f"Parameter '{name}' not recognised. Supported: {list(lookup.keys())}"
)

Or would you guys suggest something else?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions