Skip to content

Access and output of sequences from the 'sw1d_channel' instance #170

Open

Description

@unitedoffice

It would be useful if after the simulation, the simulated sequences (e.g. discharges) of each element of the 'sw1d_channel' instance could be accessed and saved, similar to how it is possible for elements of the land models. So far, only NaN values are being stored. Code example:
for element in hp.elements.search_keywords("LIAS"): element.model.sequences.fluxes["discharges"].save_series()

Activity

  1. tyralla commented on Jun 17, 2025

    @tyralla
    Member

    Yes, this behaviour is logical if one knows the details of HydPy-SW1D and the collective concept, but surprising for those who think that sw1d_channel just works like "normal" models.

    We will need to discuss whether we prefer to send the data to the sequences of sw1d_channel somehow (with some additional computational cost), or if we prefer to deny access to these sequences, remove them, emit warnings, or so.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions