Skip to content

Replace interp1d modern #2487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed

Conversation

kadheer
Copy link

@kadheer kadheer commented Jun 17, 2025

  • Closes #xxxx
  • I am familiar with the contributing guidelines
  • Tests added
  • Updates entries in docs/sphinx/source/reference for API changes.
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Sorry, something went wrong.

rached haddar and others added 17 commits June 15, 2025 16:48
- Add detailed definitions for solar angles with range constraints
- Clarify pvlib's east-of-north convention for azimuth angles
- Add cross-references between related terms using :term: directive
- Add coordinate system conventions for latitude/longitude
- Enhance existing angle definitions with usage notes and examples

This commit addresses issue pvlib#2448 by migrating angle definitions and
conventions from parameter descriptions to the nomenclature page.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
mprove pvlib.tracking.singleaxis docstring pvlib and  Outdated NSRDB PSM3 documentation link returns 404 Not Found  fixes

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: update solar angle definitions in nomenclature
- Introduced a new function to infer updated coefficients for the Huld model based on EU JRC research.
- Added a parameter to the existing Huld function to optionally use these updated coefficients.
- Updated documentation to reflect the new functionality and included references to the EU JRC paper.
- Added tests to verify the implementation and ensure compatibility with existing functionality.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enhance Huld model with EU JRC coefficients
- Updated the test for the Huld model to use non-reference values for irradiance and temperature.
- Enhanced the test to verify that results differ for all supported cell types when using EU JRC coefficients.
- Added checks to ensure all cell types are supported and that a KeyError is raised for invalid cell types.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Refactor Huld model tests for EU JRC coefficients
- Created test_solar_angles.py to verify solar angle calculations
- Tests zenith, azimuth, and elevation angles for different times of day
- Uses New York City as example location on spring equinox
- Verifies angles are within expected ranges and follow correct patterns

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add test script for solar angle calculations (Issue pvlib#2448)
…s/test_solarposition.py

- Deleted the standalone test_solar_angles.py file.
- Added a new test function, test_solar_angles_spring_equinox, to tests/test_solarposition.py.
- The new test verifies solar angles for New York City on the spring equinox, ensuring angles are within expected ranges and follow correct patterns.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove test_solar_angles.py and integrate its functionality into tests/test_solarposition.py
- Clarified the description of ground reflected irradiance in the poa_components function to reference the correct ground diffuse function.
- Corrected the citation format in the Boland model references to ensure consistency and accuracy in the documentation.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update documentation for POA components and Boland model references

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix interaction between ground diffuse functions in test_ground_diffuse.py
@kandersolar
Copy link
Member

@kadheer this PR makes many unrelated changes, none of which appear to be related to the title of this PR (interp1d). I'm going to close this PR since I think it will be more work to clean up than it would be to just start fresh.

I suggest keeping PRs focused on just one topic instead of trying to change many things at once. It makes them much more likely to be merged :)

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.

None yet

4 participants