Skip to content

Cmd/accusphere#1579

Merged
rajeeja merged 12 commits into
rajeeja/accuspherefrom
cmd/accusphere
Jul 16, 2026
Merged

Cmd/accusphere#1579
rajeeja merged 12 commits into
rajeeja/accuspherefrom
cmd/accusphere

Conversation

@cmdupuis3

@cmdupuis3 cmdupuis3 commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Addendum to PR #1513.

Overview

Included are:

  • Accuracy bug fix + test
  • small optimization with scalarizing _counts_as_crossing
  • small optimization by refactoring numba
  • gca_gca benchmarks
  • other tests

PR Checklist

General

  • An issue is linked created and linked
  • Add appropriate labels
  • Filled out Overview and Expected Usage (if applicable) sections

Testing

  • Adequate tests are created if there is new functionality
  • Tests cover all possible logical paths in your function
  • Tests are not too basic (such as simply calling a function and nothing else)

Documentation

  • Docstrings have been added to all new functions
  • Docstrings have updated with any function changes
  • Internal functions have a preceding underscore (_) and have been added to docs/internal_api/index.rst
  • User functions have been added to docs/user_api/index.rst

Examples

  • Any new notebook examples added to docs/examples/ folder
  • Clear the output of all cells before committing
  • New notebook files added to docs/examples.rst toctree
  • New notebook files added to new entry in docs/gallery.yml with appropriate thumbnail photo in docs/_static/thumbnails/

vakudo and others added 12 commits July 14, 2026 00:57
calculate_total_face_area accepted quadrature_rule, order and
latitude_adjusted_area but ignored them, always returning the cached
default-parameter face_areas. As a result the gaussian/corrected path
produced the same total as the triangular one.

Keep the cached fast path for the default parameters (which also preserves
the equal-area values used for HEALPix grids) and route any non-default
quadrature settings through _compute_face_areas so the requested rule,
order and latitude adjustment actually take effect.
…wargs

Honor quadrature kwargs in calculate_total_face_area
* Restore matplotlib backend after HoloViews matplotlib plot

plot(backend='matplotlib') calls hv.extension('matplotlib'), which switches
the active matplotlib backend and clobbers the IPython inline display hook,
silently breaking subsequent native matplotlib/xarray .plot() calls. Restore
the original matplotlib backend right after the HoloViews extension switch;
HoloViews objects still display via Store.current_backend, so this is safe.

Closes #1537

* Address review: capture backend at switch, accurate docstring, effective test

* Reconfigure IPython inline display hook when restoring backend

mpl.use() restores the matplotlib backend name but does not re-register
IPython's inline display integration that hv.extension('matplotlib')
clobbers. In a Jupyter kernel without an explicit %matplotlib inline,
native matplotlib/xarray .plot() calls after a uxarray matplotlib plot
still failed to render. Re-run configure_inline_support when the restored
backend is inline so the display hook is reinstated. See #1537.

* Restore matplotlib backend via IPython shell reactivation to fix inline display

---------

Co-authored-by: Orhan Eroglu <32553057+erogluorhan@users.noreply.github.com>
* Allow SCRIP reader to respect units wrt to radians

* Add test file and unit test for SCRIP radian coordinate handling

* minor formatting changes for scrip radians fix

Moves meshfiles/scrip/scrip_radians.nc to meshfiles/scrip/scrip_radians/scrip_radians_grid.nc to match style of other meshfiles naming schemes.

Renames the new _scrip._convert_to_degrees() to _scrip._values_in_degrees(). It doesn't always convert; and it also does more than just converting, because it gives numpy array from DataArray. Clarified docstring.

ran the following, so it should now pass ruff checks: pre-commit run --all-files

---------

Co-authored-by: Sam Evans <s7evans11@gmail.com>
Co-authored-by: Sam Evans <47793072+Sevans711@users.noreply.github.com>
Co-authored-by: Rajeev Jain <rajeeja@gmail.com>
)

* Upgrade YAC to v3.18, expose DNN remapping, drop pathlib backport

- upgrade YAC CI to v3.18.0 on Python 3.14 (numba>=0.63, py3.14 classifier,
  cython>=3.1 via conda for the bindings build)
- fix add_average: reduction_type -> weight_type (renamed in YAC v3.18)
- expose distance-nearest-neighbour (yac_method='dnn', new in YAC v3.15) + test
- remove the obsolete 'pathlib' backport dependency: it shadows the stdlib and
  breaks tools that import pathlib on Python 3.10+ (broke YAC's Cython build)

* Reference #1561 in numba version pin comment

---------

Co-authored-by: Christopher Dupuis <45972964+cmdupuis3@users.noreply.github.com>
#1572)

Bumps the actions group with 1 update in the / directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/download-artifact` from 7 to 8
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.15.21](astral-sh/ruff-pre-commit@v0.15.20...v0.15.21)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@cmdupuis3
cmdupuis3 requested a review from rajeeja July 16, 2026 20:00

@rajeeja rajeeja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @cmdupuis3 — this fixes the sum-of-squares cross-term in the compensated EFT kernels (more accurate |n|²), tightens the point-in-polygon path, and adds accuracy tests and gca_gca benchmarks. Merging into the accusphere branch.

@rajeeja
rajeeja merged commit 465fd4c into rajeeja/accusphere Jul 16, 2026
13 of 14 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.

5 participants