Skip to content

Replace isinstance chains with match/case for observation dispatch #610

@ecomodeller

Description

@ecomodeller

matching.py already uses match/case for observation type dispatch, but several other files still use isinstance chains:

  • model/dfsu.pyextract() method
  • model/grid.pyextract() method
  • model/dummy.pyextract() method
  • plotting/_spatial_overview.py — observation type for plotting

These should be converted to match/case for consistency and readability.

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