Add batch API, Python 3.10+, Fortran vectorization, matplotlib fix#14
Open
Mxade wants to merge 2 commits intorilma:mainfrom
Open
Add batch API, Python 3.10+, Fortran vectorization, matplotlib fix#14Mxade wants to merge 2 commits intorilma:mainfrom
Mxade wants to merge 2 commits intorilma:mainfrom
Conversation
- hwm14_vectorized() for vectorized/batch evaluation; Fortran hwm14_batch - requires-python >=3.10; plotting Normalize(vmin,vmax) for matplotlib - FORK_README.md: build, usage, PR notes; tests: TestHWM14Vectorized Made-with: Cursor
Owner
|
@Mxade, let's start with this. Python version < 3.13 do not provide bug fixes, so let's stick to >= 3.13 |
rilma
reviewed
Mar 17, 2026
FORK_README.md
Outdated
|
|
||
| ## Changes in this fork | ||
|
|
||
| - **Python:** `requires-python = ">=3.10"` (was 3.13+). |
Owner
There was a problem hiding this comment.
Python versions < 3.13 are not longer with big fixes, see here, so let's stick with the support for >= 3.13 as originally implemented in the repo.
Author
There was a problem hiding this comment.
@rilma Done — reverted to requires-python >= 3.13 and updated FORK_README.md per your comment. Batch API / Fortran / plotting / tests unchanged. Thanks again.
Revert Python 3.10–3.12 trove classifiers. Update FORK_README to match. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a vectorized/batch API, broadens Python support, and fixes matplotlib compatibility:
hwm14_vectorized()– New function for vectorized/batch evaluation: accepts arrays of altitude, latitude, longitude, and UTC hours and returns zonal/meridional wind arrays in one call. When the Fortran extension is built, a newhwm14_batchsubroutine is used for a single Fortran call over N points; otherwise a Python loop over the existing single-pointhwm14is used.requires-python >=3.10– Relaxed from>=3.13so the package can be used on Python 3.10–3.13 (and 3.14).Normalize(vmin, vmax)is now used when both limits are set, instead of passingnorm=Normalize()together withvmin/vmaxtopcolor, for compatibility with current matplotlib.TestHWM14Vectorizedintest_core.pyfor the batch API (single point, batch vs HWM14, defaultap, broadcast).Closes
Type of Change
Checklist
Testing
pytest tests -v(67 passed, including newTestHWM14Vectorizedand existing core/plotting).HWM14class for the same inputs.pip install -e . pytest tests -vAdditional Context
gfortran); see FORK_README.md.Made with: Cursor