Skip to content

Commit 36efd6e

Browse files
authored
Merge pull request #301 from hpparvi/v1.8
V1.8
2 parents b0f657c + 400ca31 commit 36efd6e

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,25 @@ jobs:
1212
# NOTE: Uncomment "if" if you do not want this to run for every PR.
1313
# if: ((github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || contains(github.event.pull_request.labels.*.name, 'Build wheels'))
1414
with:
15+
save_artifacts: true
16+
upload_to_pypi: false
1517
test_extras: test
1618
test_command: pytest $GITHUB_WORKSPACE/specreduce/tests
17-
secrets:
18-
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
19+
20+
upload:
21+
if: startsWith(github.ref, 'refs/tags/v')
22+
name: Upload built artifacts to PyPI
23+
runs-on: ubuntu-latest
24+
needs: [ publish ]
25+
permissions:
26+
id-token: write
27+
steps:
28+
- name: Download artifacts
29+
uses: actions/download-artifact@v7
30+
with:
31+
merge-multiple: true
32+
pattern: dist-*
33+
path: dist
34+
35+
- name: Run upload
36+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGES.rst

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
1-
1.8.0 (2026-01-xx)
1+
1.8.0 (2026-02-24)
22
------------------
33

44
New Features
55
^^^^^^^^^^^^
66

77
- Added uncertainty propagation to ``specreduce.extract.BoxcarExtract`` and
88
``specreduce.extract.HorneExtract``. The extracted spectra have now proper uncertainties.
9+
[#295, #296]
10+
911
- Added uncertainty propagation to ``specreduce.background.Background``. The
1012
``bkg_image()``, ``bkg_spectrum()``, ``sub_image()``, and ``sub_spectrum()`` methods
1113
now return spectra with proper uncertainties. When input image has uncertainty, it is
1214
propagated using variance formulas appropriate for the chosen statistic. When no
13-
uncertainty is provided, it is estimated from the flux values in the background region.
15+
uncertainty is provided, it is estimated from the flux values in the background region. [#297]
16+
1417
- Added optional ``sigma`` parameter to ``specreduce.background.Background`` for sigma
1518
clipping outlier rejection in background estimation. Default is 5.0; set to ``None``
16-
to disable.
19+
to disable. [#297]
20+
21+
API Changes
22+
^^^^^^^^^^^
23+
24+
- Removed ``specreduce.compat`` module and migrated all internal code to use
25+
``specutils.Spectrum`` directly. This breaks compatibility with specutils 1.x.
26+
Users must update to specutils ≥2.0. [#299]
27+
28+
- Bumped minimum dependency versions: specutils ≥2.0, astropy ≥6.0,
29+
scipy ≥1.14, photutils ≥1.11. These increases are required for
30+
specutils 2.0 compatibility. [#299]
1731

1832
Other changes
1933
^^^^^^^^^^^^^
2034

21-
- Changed to use ``sphinx_astropy.conf.v2`` and revised the documentation.
35+
- Changed to use ``sphinx_astropy.conf.v2`` and revised the documentation. [#275]
2236

2337
1.7.0 (2025-11-13)
2438
------------------

docs/roadmap.png

-1.63 KB
Loading

0 commit comments

Comments
 (0)