Replace isinstance chains with match/case for observation dispatch
Open
- Dominant language
- Python
- Stars
- 56
- Forks
- 9
- Avg merge
- 57m
- Merged PRs (30d)
- 3
Description
`matching.py` already uses match/case for observation type dispatch, but several other files still use isinstance chains:
- `model/dfsu.py` — `extract()` method
- `model/grid.py` — `extract()` method
- `model/dummy.py` — `extract()` method
- `plotting/_spatial_overview.py` — observation type for plotting
These should be converted to match/case for consistency and readability.
Contributor guide
Assessment
This issue has not been assessed yet.