Skip to content

Commit

Permalink
Improved named_arrays.histogramdd() to automatically cast arguments…
Browse files Browse the repository at this point in the history
… to instances of `AbstractArray`. (#102)
  • Loading branch information
byrdie authored Jan 13, 2025
1 parent 04ec3d6 commit 911b3ee
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Install pypa/build
run: >-
python -m
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", ]
python-version: ["3.11", ]
os: [
ubuntu-latest,
windows-latest,
Expand Down
2 changes: 1 addition & 1 deletion named_arrays/_named_array_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def histogramdd(
"""
return _named_array_function(
histogramdd,
*sample,
*[na.as_named_array(s) for s in sample],
axis=axis,
bins=bins,
min=min,
Expand Down
4 changes: 4 additions & 0 deletions named_arrays/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,10 @@ def test_plt_plot_like(
func(*args, **kwargs)
return

for index in ax_normalized.ndindex():
ax_normalized[index].ndarray.xaxis._converter = None
ax_normalized[index].ndarray.yaxis._converter = None

with astropy.visualization.quantity_support():
result = func(*args, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"numpy<2",
"matplotlib",
"scipy",
'astropy<6.1.5',
"astropy",
"astroscrappy",
"ndfilters==0.3.0",
"colorsynth==0.1.5",
Expand Down

0 comments on commit 911b3ee

Please sign in to comment.