Skip to content

Eliminate redundant YAML+netCDF loads in run_api#58

Merged
mathieu7an merged 1 commit intoEUFLOW:mainfrom
bjarketol:fix/eliminate-redundant-yaml-loads-v2
Mar 30, 2026
Merged

Eliminate redundant YAML+netCDF loads in run_api#58
mathieu7an merged 1 commit intoEUFLOW:mainfrom
bjarketol:fix/eliminate-redundant-yaml-loads-v2

Conversation

@bjarketol
Copy link
Copy Markdown
Contributor

@bjarketol bjarketol commented Mar 13, 2026

Summary

  • run_api() was loading the full YAML+netCDF 4 times per simulation (validate → discard, load_yaml, then downstream runner validates + loads again). Now it loads once via validate_yaml() (which returns the loaded dict) and passes the dict to model runners, which skip their internal validate+load when receiving a dict.
  • Reduces transient memory load

Depends on #57.

🤖 Generated with Claude Code

@bjarketol
Copy link
Copy Markdown
Contributor Author

@SchmJo @kilojoules Can one of you review this?

Copy link
Copy Markdown
Member

@kilojoules kilojoules left a comment

Choose a reason for hiding this comment

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

looks good to me!

@bjarketol
Copy link
Copy Markdown
Contributor Author

Can someone merge this if everything looks good?

@bjarketol bjarketol force-pushed the fix/eliminate-redundant-yaml-loads-v2 branch from e79733e to 979a801 Compare March 27, 2026 08:10
- Support PyWake >= 2.6 (SimpleYawModel exp parameter removal)
- Fix Speedup axis ordering and Weibull flow case sampling
- Use DensityCompensation instead of DensityScale for air density
- Eliminate redundant YAML+netCDF loads in run_api
- Fix validate_yaml double extension and string time coordinates
- Update Python version docs to reflect 3.10-3.12 support

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@bjarketol bjarketol force-pushed the fix/eliminate-redundant-yaml-loads-v2 branch from 979a801 to b216188 Compare March 27, 2026 08:16
@bjarketol
Copy link
Copy Markdown
Contributor Author

Can someone merge this if everything looks good?

@kilojoules @SchmJo @mathieu7an

@mathieu7an mathieu7an merged commit ce915b0 into EUFLOW:main Mar 30, 2026
5 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