Skip to content

Improved data_loader#402

Merged
FlorianDeconinck merged 3 commits into
NOAA-GFDL:developfrom
CharlesKrop:feature/improved_data_loader
Mar 25, 2026
Merged

Improved data_loader#402
FlorianDeconinck merged 3 commits into
NOAA-GFDL:developfrom
CharlesKrop:feature/improved_data_loader

Conversation

@CharlesKrop
Copy link
Copy Markdown
Collaborator

Tiny PR adding ability for data_loader to auto-detect current savepoint index in the netcdf. Needed for some newer translate tests where the existing translate test systems fail to load 4D variables. No changes to existing code, previous uses of data_loader should be unaffected.

Comment thread ndsl/stencils/testing/savepoint.py Outdated
Copy link
Copy Markdown
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand the use-cases: can you add a use-case that load the wrong data without this change?

Do you know if there any current usage of the isel parameter of load, e.g.load(name, prefix="...", isel=5)? I'm asking because I think this case won't be possible anymore with the currently proposed changes.

Ps, linting seems to be failing ...

Copy link
Copy Markdown
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Fix lint and merge in

@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Mar 25, 2026
Merged via the queue into NOAA-GFDL:develop with commit ccf2ed3 Mar 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants