Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Matching step is public under three different names on model results

Open Beginner friendly
#732 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Read the match() implementations and the PointModelResult, TrackModelResult, and VerticalModelResult APIs to locate calls to interp_time, subset_to, and align. Make those methods private while keeping extract public; check that matching still works and the API reference no longer presents those methods as public.

Written by the indexing model from the issue text.

Description

Matching a model result to an observation is one step, but each model result type exposes it publicly under its own name:

type method
PointModelResult interp_time(observation, **kwargs)
TrackModelResult subset_to(observation, *, spatial_tolerance)
VerticalModelResult align(vo, temporal_tolerance=None)
DfsuModelResult, GridModelResult, NetworkModelResult, DummyModelResult extract(observation, spatial_method=None)

interp_time, subset_to and align are called only from match(), take arguments that match() normally sets, and return different things (a model result, or an xr.Dataset). They show up in tab completion and in the API reference (PointModelResult, VerticalModelResult), where a user sees four ways to do what match() already does.

extract is different: it turns a spatial model result into a point/track one, which is useful on its own.

Proposal: make interp_time, subset_to and align private. Keep extract public.

Dominant language
Python
Stars
58
Forks
10
Avg merge
28m
Merged PRs (30d)
1

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DHI/modelskill

All issues in DHI/modelskill

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.