Skip to content

Selective/lazy from_res1d ingestion by quantity, for calibration loops #679

Description

@jpalm3r

Summary

from_res1d takes about 18-25 seconds on a moderately sized network file. The documented nodes=[...], reaches=[] filtering cuts that to around 5 seconds, but the remaining time is still mostly spent building topology rather than reading data.

In a calibration loop that rebuilds the network for every trial, this dominates the runtime — matching itself is already fast in comparison.

Request

Support selective or lazy ingestion by quantity, on top of the existing node/reach filtering, so calibration workflows can build only what a given trial needs.

Relevant entry points

  • Network.from_res1d (src/modelskill/network.py:351-447)
  • Network._load_res1d_network (network.py:448-487)

Found by a test user evaluating the network functionality ahead of a 1.4.0 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions