Skip to content
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

Merges develop into release (1.17.0 tag prep) #1867

Merged
merged 549 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
549 commits
Select commit Hold shift + click to select a range
5f0e4e6
fix bug
debora-pe Jul 27, 2024
21f7975
set param to True
debora-pe Jul 27, 2024
7db6689
small things
debora-pe Jul 27, 2024
87527fa
fixed missing argument
rcooke-ast Jul 27, 2024
888d372
deal with mismatched orders
debora-pe Jul 28, 2024
707db07
add to release
debora-pe Jul 28, 2024
dcb8b3e
fix bug
debora-pe Jul 28, 2024
abe1090
Merge branch 'develop' into kcwi_cube_updates
rcooke-ast Jul 29, 2024
c2dca65
Merge pull request #1770 from pypeit/kcwi_cube_updates
rcooke-ast Jul 29, 2024
527a2bb
Merge branch 'develop' into uves_popler
rcooke-ast Jul 29, 2024
ccb2759
Merge branch 'uves_popler_tmp' into uves_popler
rcooke-ast Jul 29, 2024
fe7857b
Merge branch 'develop' into aat_uhrf
rcooke-ast Jul 29, 2024
be55baa
Merge branch 'develop' into random_fixes
debora-pe Jul 29, 2024
fce85e6
fix bug
debora-pe Jul 29, 2024
47b9aa4
do not resync after order refinement
kbwestfall Jul 29, 2024
64ca028
fix mismatch order sensfunc data
debora-pe Jul 30, 2024
ff3b466
error and doc
debora-pe Jul 30, 2024
5f5cfcc
changed default fwhm_fromlines behavior
Jul 30, 2024
26a1233
gain and read noise for uvb/vis from headers
Jul 30, 2024
e0d89a8
correctly frametype lampoffflats
Jul 30, 2024
43da424
Merge branch 'xsh_nir_objtrace' of https://github.com/pypeit/PypeIt i…
Jul 30, 2024
b11a72c
doc update
Jul 30, 2024
4b00846
Merge branch 'develop' into xsh_nir_objtrace
Jul 30, 2024
c9029e6
add AAT/UHRF
Jul 31, 2024
76af9f7
add AAT/UHRF wavelength solution (CN)
Jul 31, 2024
ffa3e02
allow to set max overlap
kbwestfall Jul 31, 2024
4850162
doc update
kbwestfall Jul 31, 2024
4722c1d
changes
kbwestfall Jul 31, 2024
584d83a
doc updates
rcooke-ast Jul 31, 2024
27410e4
fix a bug
debora-pe Jul 31, 2024
9c7e9b3
Merge branch 'develop' of https://github.com/pypeit/PypeIt into lris_…
jhennawi Aug 1, 2024
47cfbd2
pre-merge fixes
debora-pe Aug 1, 2024
23905f9
Merge branch 'develop' into slitless_flats
debora-pe Aug 1, 2024
f12276c
interrupt
kbwestfall Aug 2, 2024
15db2c3
before testing
kbwestfall Aug 2, 2024
2007398
most of the docs
debora-pe Aug 7, 2024
8169140
all minor-ish comments
debora-pe Aug 7, 2024
0141629
fix trc_name when None as input
rcooke-ast Aug 9, 2024
76c5d30
flip check
rcooke-ast Aug 10, 2024
400f6c5
Merge branch 'develop' into develop
kbwestfall Aug 12, 2024
844c2a8
update release logs
rcooke-ast Aug 12, 2024
a4f1fe0
Merge pull request #1837 from pypeit/hotfix_align
kbwestfall Aug 12, 2024
20a7480
Merge branch 'develop' into develop
profxj Aug 12, 2024
4cc548e
Merge pull request #1828 from Adolfo1519/develop
profxj Aug 12, 2024
7f59d94
switch instance test
kbwestfall Aug 12, 2024
320633c
Merge branch 'develop' into random_fixes
debora-pe Aug 12, 2024
23d471a
fix file extensions
kbwestfall Aug 12, 2024
a5068b6
Merge branch 'develop' into aat_uhrf
rcooke-ast Aug 13, 2024
75aa277
test + doc fixes
kbwestfall Aug 13, 2024
29e02b7
Merge branch 'develop' into filesearch
kbwestfall Aug 13, 2024
8b93ddc
Merge branch 'aat_uhrf' into filesearch
kbwestfall Aug 13, 2024
348743f
doc update
kbwestfall Aug 13, 2024
6ceec23
test fix
kbwestfall Aug 13, 2024
505a447
Merge branch 'develop' into order_sync
kbwestfall Aug 13, 2024
e967c0c
debug overlap of added orders
kbwestfall Aug 13, 2024
717bd65
PR comments
kbwestfall Aug 13, 2024
c006363
Merge branch 'develop' into xsh_nir_objtrace
kbwestfall Aug 13, 2024
95776c9
add kind=stable to argsort
debora-pe May 16, 2024
e9c6f8d
detailed changes
kbwestfall Aug 13, 2024
8ab0b76
added to release
debora-pe Aug 13, 2024
50074c0
Merge pull request #1840 from pypeit/argsort_fix
debora-pe Aug 14, 2024
e11c3ed
Merge branch 'develop' into random_fixes
debora-pe Aug 14, 2024
c26be35
move orig_ech_objfind to deprecated
debora-pe Aug 14, 2024
0ac9fe3
move orig_ech_objfind to deprecated2
debora-pe Aug 14, 2024
04a27f0
overlap fix
kbwestfall Aug 15, 2024
f818bed
Merge remote-tracking branch 'origin/filesearch' into orient_fix
rcooke-ast Aug 15, 2024
f8afdbd
remove None fluxes when creating sensfunc
debora-pe Aug 15, 2024
cf89c58
fixes to docstrings
debora-pe Aug 15, 2024
9405d09
to be continued...
debora-pe Aug 16, 2024
4c322b8
update extensions
rcooke-ast Aug 16, 2024
04dd300
Merge branch 'develop' into nirspec
Adolfo1519 Aug 16, 2024
a07faf3
removing debugging print statements from coadd.py
Adolfo1519 Aug 16, 2024
683cd78
Slitless class + cache stuff
debora-pe Aug 17, 2024
a6d8fcc
fix docs
debora-pe Aug 17, 2024
5477a59
Merge branch 'develop' into slitless_flats
debora-pe Aug 17, 2024
dd282af
allow fits.gz
rcooke-ast Aug 18, 2024
47c83c4
Merge branch 'develop' into uves_popler
rcooke-ast Aug 18, 2024
ca6a46f
pr comments on platescale
Aug 19, 2024
3aac40a
oops, did not need to remove these Nones
Aug 19, 2024
56a67f2
unify blaze computation
rcooke-ast Aug 19, 2024
4daf232
added a note
debora-pe Aug 19, 2024
754cb17
Merge pull request #1833 from pypeit/random_fixes
debora-pe Aug 19, 2024
60a2eac
avoid zero objprofile for failed local sky
debora-pe Aug 19, 2024
5d653a1
Merge branch 'develop' into slitless_flats
debora-pe Aug 19, 2024
66ac429
Merge branch 'develop' into aat_uhrf
rcooke-ast Aug 20, 2024
20bb2f0
Merge branch 'develop' into filesearch
rcooke-ast Aug 20, 2024
9ea1bef
Merge branch 'aat_uhrf' into filesearch
rcooke-ast Aug 20, 2024
49d2233
update users Aug 2024
rcooke-ast Aug 20, 2024
eca028a
Merge branch 'develop' into order_sync
kbwestfall Aug 20, 2024
f477006
bug fix
kbwestfall Aug 20, 2024
e37c18c
Add pseudo-blaze to test IDL files
Aug 21, 2024
b3bdeea
Merge branch 'develop' into uves_popler
rcooke-ast Aug 21, 2024
8d17835
rm bracketing orders when there is no overlap
kbwestfall Aug 21, 2024
541f8c0
fix to build_fwhmimg
debora-pe Aug 22, 2024
a14b99b
return no finecorr if fitting failure
rcooke-ast Aug 22, 2024
5c87046
add spaces
rcooke-ast Aug 23, 2024
674d19e
script added
debora-pe Aug 24, 2024
d60f967
remove commented out
debora-pe Aug 24, 2024
94d2db5
Merge branch 'release' into xsh_nir_objtrace
kbwestfall Aug 26, 2024
c0319b5
Merge branch 'develop' into xsh_nir_objtrace
kbwestfall Aug 26, 2024
0966f40
release update
kbwestfall Aug 26, 2024
72bf70f
Merge pull request #1839 from pypeit/filesearch
kbwestfall Aug 26, 2024
9ccda6b
Merge branch 'release' into aat_uhrf
kbwestfall Aug 26, 2024
67e4684
doc update
kbwestfall Aug 26, 2024
df30133
Merge pull request #1832 from pypeit/xsh_nir_objtrace
kbwestfall Aug 26, 2024
1cd3ee0
Merge branch 'develop' into aat_uhrf
kbwestfall Aug 26, 2024
00e5b30
Merge branch 'develop' into order_sync
kbwestfall Aug 26, 2024
7bb82ea
updated change log for KCWI
rcooke-ast Aug 26, 2024
03d1fde
make order stack output wave_grid_mid_ord, instead of wave_stack
Adolfo1519 Aug 26, 2024
9da353e
Edits in response to Kyle's comments.
Adolfo1519 Aug 26, 2024
3243d15
Merge remote-tracking branch 'upstream/develop' into develop
Adolfo1519 Aug 26, 2024
7e672af
add test for mask around peaks
rcooke-ast Aug 26, 2024
884af8f
revert to old masking
rcooke-ast Aug 26, 2024
a9e5cd7
rm old arc line
rcooke-ast Aug 26, 2024
097d55a
Merge branch 'develop' into chk_flexure
debora-pe Aug 26, 2024
ed3c097
added doc to release
debora-pe Aug 26, 2024
6a0367e
small change
debora-pe Aug 26, 2024
2388003
move to a function
debora-pe Aug 26, 2024
f864562
Merge pull request #1844 from pypeit/chk_flexure
debora-pe Aug 26, 2024
93e54ce
fixed bug when responding to Kyle's comments
Adolfo1519 Aug 27, 2024
3aec173
Merge branch 'develop' into aat_uhrf
rcooke-ast Aug 27, 2024
d2e636e
doc update
kbwestfall Aug 28, 2024
f741f46
add docs
kbwestfall Aug 28, 2024
1ada0b0
Merge branch 'develop' into order_sync
kbwestfall Aug 28, 2024
08a2798
fix overlap detection; add new parameters for order width/gap fitting
kbwestfall Aug 28, 2024
01aed2e
doc update
kbwestfall Aug 28, 2024
25c7e35
mv flexure_diagnostics into each relevant class
kbwestfall Aug 29, 2024
97c5950
small fixes
debora-pe Aug 29, 2024
450590c
Merge branch 'develop' into uves_popler
rcooke-ast Aug 29, 2024
449d5de
rm commented code
kbwestfall Aug 29, 2024
417c50b
Merge pull request #1845 from pypeit/flexure_diag
kbwestfall Aug 29, 2024
ead8ddb
Merge branch 'develop' into slitless_flats
kbwestfall Aug 29, 2024
745f36c
Merge pull request #1820 from pypeit/slitless_flats
profxj Aug 30, 2024
4ba7d1d
Merge branch 'develop' into order_sync
kbwestfall Aug 30, 2024
0665fee
doc update
kbwestfall Aug 30, 2024
905d775
Merge branch 'develop' into aat_uhrf
rcooke-ast Aug 30, 2024
71fa5ab
Merge branch 'develop' into uves_popler
rcooke-ast Aug 30, 2024
2e87ec6
Merge branch 'aat_uhrf' into uves_popler
rcooke-ast Aug 30, 2024
bd77c38
Merge pull request #1834 from pypeit/aat_uhrf
kbwestfall Aug 30, 2024
1fed401
Merge branch 'develop' into order_sync
kbwestfall Aug 30, 2024
fd7707f
doc update
kbwestfall Aug 30, 2024
e590543
Add support for Keck/KCWI BH3
rcooke-ast Aug 30, 2024
be1a8cd
Merge branch 'develop' into bh3_support
rcooke-ast Aug 30, 2024
86b8c30
fix it
debora-pe Aug 30, 2024
ef9cca8
update docs
debora-pe Aug 30, 2024
2739521
Merge branch 'develop' into fix_spatflex
debora-pe Aug 31, 2024
02f6ad8
Merge branch 'develop' into uves_popler
rcooke-ast Sep 1, 2024
bfb9dc2
replace flatfile with use_blaze
rcooke-ast Sep 1, 2024
384d5b7
fix reshape
rcooke-ast Sep 1, 2024
36dc499
rm flatfile
rcooke-ast Sep 1, 2024
4a66d21
add checks
rcooke-ast Sep 1, 2024
147e716
taper the finecorr to the flatfield
rcooke-ast Sep 2, 2024
8381c6c
fix possible divide by zero
rcooke-ast Sep 2, 2024
482dccc
remove bad/unrealistic flat model values
rcooke-ast Sep 2, 2024
cd87c4e
add 1200/7100 D55 arxived solution
finagle29 Sep 3, 2024
e7ca833
Merge branch 'develop' into p200_dbsp_binning_fix
finagle29 Sep 3, 2024
b43651d
fix for case with no flatfield
rcooke-ast Sep 3, 2024
95b23bf
consolidate read function
kbwestfall Sep 3, 2024
59152aa
rm import
kbwestfall Sep 3, 2024
d290842
minor edits
kbwestfall Sep 3, 2024
52b7f21
require_dim
kbwestfall Sep 3, 2024
dfb9d2b
Addresses PR comments
rcooke-ast Sep 4, 2024
57a2d09
explicitly check for pixelflat_model
rcooke-ast Sep 4, 2024
b4212a8
Specify `remote_host` in call to PypeItDataPath
tbowers7 Sep 4, 2024
2746487
Merge pull request #1852 from pypeit/cache_github_fix
finagle29 Sep 4, 2024
f0d1c42
added use_flat as a keyword argument
rcooke-ast Sep 5, 2024
6ff0668
flatfield model masking
rcooke-ast Sep 5, 2024
f1dc971
fix argument value
rcooke-ast Sep 5, 2024
aad9da7
fix argument value
rcooke-ast Sep 5, 2024
2d57634
Merge pull request #1851 from pypeit/autosec
kbwestfall Sep 5, 2024
4a370ef
python and dependency bumps
kbwestfall Sep 5, 2024
ab271a1
Merge branch 'depver' into dep310
kbwestfall Sep 5, 2024
095dd63
doc update
kbwestfall Sep 5, 2024
832ee84
doc update
kbwestfall Sep 6, 2024
c9627a9
changes
kbwestfall Sep 6, 2024
3e9409d
test numpy 2.1
kbwestfall Sep 6, 2024
b6e5e6e
Merge pull request #1848 from pypeit/fix_spatflex
debora-pe Sep 6, 2024
c07f86c
Merge branch 'develop' into uves_popler
rcooke-ast Sep 6, 2024
c198644
Merge branch 'develop' into bh3_support
rcooke-ast Sep 6, 2024
9ef8b39
Merge branch 'develop' into dep310
kbwestfall Sep 6, 2024
081f2f4
Merge pull request #1854 from pypeit/dep310
profxj Sep 6, 2024
492c13b
Merge branch 'develop' into uves_popler
rcooke-ast Sep 6, 2024
8e68621
Merge branch 'develop' into p200_dbsp_binning_fix
kbwestfall Sep 6, 2024
4d59340
doc update
kbwestfall Sep 6, 2024
43a11c5
Merge branch 'develop' into order_sync
kbwestfall Sep 6, 2024
c7b710e
doc update
kbwestfall Sep 6, 2024
a368a4d
Merge branch 'develop' into lris_jun24
kbwestfall Sep 6, 2024
6825f1b
doc update
kbwestfall Sep 6, 2024
71fa8bf
Merge pull request #1830 from pypeit/uves_popler
rcooke-ast Sep 9, 2024
9b6fc3a
Merge branch 'develop' into bh3_support
rcooke-ast Sep 9, 2024
af3bfc5
Merge branch 'develop' into p200_dbsp_binning_fix
kbwestfall Sep 9, 2024
c9b5071
Merge remote-tracking branch 'upstream/develop' into develop
Adolfo1519 Sep 9, 2024
1fe2322
fix wave_grid_mid undefined issue in generic_spec_reader
Adolfo1519 Sep 9, 2024
46bb91a
Merge pull request #1849 from pypeit/p200_dbsp_binning_fix
kbwestfall Sep 9, 2024
2bc993b
Merge branch 'develop' into order_sync
kbwestfall Sep 9, 2024
34364fb
Merge branch 'develop' into develop
Adolfo1519 Sep 9, 2024
bd688ed
Merge branch 'develop' into bh3_support
rcooke-ast Sep 10, 2024
4b8ae0f
fix book-keeping bug
kbwestfall Sep 10, 2024
7a10573
order_outlier=None
debora-pe Sep 11, 2024
3d26a0b
Merge pull request #1847 from pypeit/bh3_support
rcooke-ast Sep 11, 2024
a31667c
Merge branch 'develop' of https://github.com/pypeit/PypeIt into lris_…
jhennawi Sep 16, 2024
f875946
fix echelle waveimg bug
debora-pe Sep 17, 2024
519f53d
Merge branch 'develop' into order_sync
debora-pe Sep 17, 2024
2e1ae70
comments
debora-pe Sep 17, 2024
83bbbdb
DR comments; doc update
kbwestfall Sep 17, 2024
2a074b2
user_objid
debora-pe Sep 18, 2024
7a7bb85
doc update
kbwestfall Sep 19, 2024
05065ca
small cleanup
debora-pe Sep 20, 2024
0c27950
added to realease doc
debora-pe Sep 20, 2024
2b53647
Merge pull request #1821 from pypeit/lris_jun24
debora-pe Sep 20, 2024
fe64515
Merge branch 'develop' into order_sync
rcooke-ast Oct 2, 2024
1d6197a
added measured_fwhm option
debora-pe Oct 19, 2024
242f664
small fix to chk_tilts
debora-pe Oct 19, 2024
5e5347f
remove embed
debora-pe Oct 20, 2024
42dec09
small doc changes
debora-pe Oct 20, 2024
7a3944e
small doc changes
debora-pe Oct 20, 2024
fee169a
add b480
profxj Oct 21, 2024
7c10948
Merge remote-tracking branch 'upstream/develop' into develop
Adolfo1519 Oct 21, 2024
8fe916a
fix it
debora-pe Oct 23, 2024
d541458
rm codecov?
kbwestfall Oct 28, 2024
ed898bb
Merge branch 'develop' into rmcodecov
kbwestfall Oct 28, 2024
641f8c0
Merge pull request #1864 from pypeit/rmcodecov
kbwestfall Oct 28, 2024
e6d6117
add order prediction qa
kbwestfall Oct 28, 2024
7b33023
Merge branch 'develop' into order_sync
kbwestfall Oct 28, 2024
46cb110
Merge branch 'develop' into hotfix_slitless
debora-pe Oct 29, 2024
1f5f5aa
Merge branch 'develop' into tilts_fwhm
debora-pe Oct 29, 2024
8323968
order qa plot
kbwestfall Oct 29, 2024
d5c0f8c
Merge branch 'develop' into develop
kbwestfall Oct 29, 2024
8fe282d
Merge pull request #1835 from pypeit/order_sync
kbwestfall Oct 29, 2024
f1a8cbb
Merge branch 'develop' into tilts_fwhm
debora-pe Oct 29, 2024
703bfe1
doc
debora-pe Oct 29, 2024
a000b46
Merge pull request #1861 from pypeit/tilts_fwhm
debora-pe Oct 29, 2024
1c3a8c6
Merge branch 'develop' into hotfix_slitless
debora-pe Oct 29, 2024
23630d7
Merge pull request #1863 from pypeit/hotfix_slitless
debora-pe Oct 29, 2024
2b15073
Merge branch 'develop' into develop
kbwestfall Oct 29, 2024
1b7f032
Merge pull request #1841 from Adolfo1519/develop
kbwestfall Oct 29, 2024
eab0d4e
propagate try_old in specobjs; add mosaic test
kbwestfall Oct 29, 2024
46ac2fe
changes; clean-up
kbwestfall Oct 29, 2024
c97ec40
test fix
kbwestfall Oct 30, 2024
e35362a
Merge pull request #1865 from pypeit/mosaic_try_old
kbwestfall Oct 31, 2024
545033e
doc update
kbwestfall Oct 31, 2024
7c96b68
Merge branch 'develop' into gmos_s_b480
profxj Oct 31, 2024
9540496
bump release notes
kbwestfall Nov 1, 2024
d8ebb1d
exclude pixelflats from package distribution
kbwestfall Nov 1, 2024
e6a95e2
only zipped files
kbwestfall Nov 1, 2024
bb1c12e
release doc fix
kbwestfall Nov 1, 2024
693d727
Merge pull request #1868 from pypeit/gmos_s_b480
kbwestfall Nov 4, 2024
d66d242
Merge branch 'develop' into staged
kbwestfall Nov 4, 2024
5bcfae6
doc update
kbwestfall Nov 4, 2024
1d3ec28
changes
kbwestfall Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12']
python: ['3.11', '3.12']
toxenv: [test-alldeps, test-numpydev, test-linetoolsdev, test-gingadev, test-astropydev]
steps:
- name: Check out repository
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12']
toxenv: [test, test-alldeps-cov, test-linetoolsdev, test-gingadev, test-astropydev]
python: ['3.11', '3.12']
toxenv: [test, test-alldeps-cov, test-numpydev, test-linetoolsdev, test-gingadev, test-astropydev]
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -32,13 +32,13 @@ jobs:
- name: Test with tox
run: |
tox -e ${{ matrix.python }}-${{ matrix.toxenv }}
- name: Upload coverage to codecov
if: "contains(matrix.toxenv, '-cov')"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV }}
file: ./coverage.xml
fail_ci_if_error: true
# - name: Upload coverage to codecov
# if: "contains(matrix.toxenv, '-cov')"
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV }}
# file: ./coverage.xml
# fail_ci_if_error: true

os-tests:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
Expand All @@ -48,7 +48,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
python: ['3.10', '3.11', '3.12']
python: ['3.11', '3.12']
toxenv: [test-alldeps]
steps:
- name: Check out repository
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Conda environment check
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install base dependencies
run: |
python -m pip install --upgrade pip tox
Expand All @@ -86,7 +86,7 @@ jobs:
- name: Python codestyle check
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ global-exclude *.pyc *.o *.so *.DS_Store *.ipynb
# update the defined_paths dictionary in pypeit.pypeitdata.PypeItDataPaths!
recursive-exclude pypeit/data/arc_lines/reid_arxiv *.fits *.json *.pdf *.tar.gz
recursive-exclude pypeit/data/arc_lines/NIST *.ascii
recursive-exclude pypeit/data/pixelflats *.fits.gz
recursive-exclude pypeit/data/sensfuncs *.fits
recursive-exclude pypeit/data/skisim *.dat
recursive-exclude pypeit/data/standards *.gz *.fits *.dat
Expand Down
5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
.. |CITests| image:: https://github.com/pypeit/PypeIt/workflows/CI%20Tests/badge.svg
:target: https://github.com/pypeit/PypeIt/actions?query=workflow%3A"CI+Tests"

.. |Coverage| image:: https://codecov.io/gh/PypeIt/pypeit/branch/release/graph/badge.svg
:target: https://codecov.io/gh/PypeIt/pypeit

.. |docs| image:: https://readthedocs.org/projects/pypeit/badge/?version=latest
:target: https://pypeit.readthedocs.io/en/latest/

Expand Down Expand Up @@ -49,7 +46,7 @@ PypeIt |forks| |stars|

|github| |pypi| |pypi_downloads| |License|

|docs| |CITests| |Coverage|
|docs| |CITests|

|DOI_latest| |JOSS| |arxiv|

Expand Down
18 changes: 16 additions & 2 deletions bin/pypeit_c_enabled
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,25 @@ else:
print('Successfully imported bspline C utilities.')

try:
from pypeit.bspline.setup_package import extra_compile_args

# Check for whether OpenMP support is enabled, by seeing if the bspline
# extension was compiled with it.
#
# The extension_helpers code that is run to figure out OMP support runs
# multiple tests to determine compiler version, some of which output to stderr.
# To make the output pretty we redirect those to /dev/null (or equivalent)
import os
import sys
devnull_fd = os.open(os.devnull,os.O_WRONLY)
os.dup2(devnull_fd,sys.stderr.fileno())

from pypeit.bspline.setup_package import get_extensions
bspline_extension = get_extensions()[0]
except:
print("Can't check status of OpenMP support")
else:
if '-fopenmp' in extra_compile_args:
# Windows uses -openmp, other environments use -fopenmp
if any(['openmp' in arg for arg in bspline_extension.extra_compile_args]):
print('OpenMP compiler support detected.')
else:
print('OpenMP compiler support not detected. Bspline utilities single-threaded.')
50 changes: 50 additions & 0 deletions deprecated/arc_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,3 +855,53 @@ def saturation_mask(a, satlevel):

return mask.astype(int)

def mask_around_peaks(spec, inbpm):
"""
Find peaks in the input spectrum and mask pixels around them.

All pixels to the left and right of a peak is masked until
a pixel has a lower value than the adjacent pixel. At this
point, we assume that spec has reached the noise level.

Parameters
----------
spec: `numpy.ndarray`_
Spectrum (1D array) in counts
inbpm: `numpy.ndarray`_
Input bad pixel mask

Returns
-------
outbpm: `numpy.ndarray`_
Bad pixel mask with pixels around peaks masked
"""
# Find the peak locations
pks = detect_peaks(spec)

# Initialise some useful variables and the output bpm
xarray = np.arange(spec.size)
specdiff = np.append(np.diff(spec), 0.0)
outbpm = inbpm.copy()

# Loop over the peaks and mask pixels around them
for i in range(len(pks)):
# Find all pixels to the left of the peak that are above the noise level
wl = np.where((xarray <= pks[i]) & (specdiff > 0.0))[0]
ww = (pks[i]-wl)[::-1]
# Find the first pixel to the left of the peak that is below the noise level
nmask = np.where(np.diff(ww) > 1)[0]
if nmask.size != 0 and nmask[0] > 5:
# Mask all pixels to the left of the peak
mini = max(0,wl.size-nmask[0]-1)
outbpm[wl[mini]:pks[i]] = True
# Find all pixels to the right of the peak that are above the noise level
ww = np.where((xarray >= pks[i]) & (specdiff < 0.0))[0]
# Find the first pixel to the right of the peak that is below the noise level
nmask = np.where(np.diff(ww) > 1)[0]
if nmask.size != 0 and nmask[0] > 5:
# Mask all pixels to the right of the peak
maxi = min(nmask[0], ww.size)
outbpm[pks[i]:ww[maxi]+2] = True
# Return the output bpm
return outbpm

68 changes: 68 additions & 0 deletions deprecated/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,3 +443,71 @@ def make_whitelight_frompixels(all_ra, all_dec, all_wave, all_sci, all_wghts, al
whitelight_ivar[:, :, ff] = ivar_img.copy()
return whitelight_Imgs, whitelight_ivar, whitelightWCS


def make_sensfunc(ss_file, senspar, blaze_wave=None, blaze_spline=None, grating_corr=False):
"""
Generate the sensitivity function from a standard star DataCube.

Args:
ss_file (:obj:`str`):
The relative path and filename of the standard star datacube. It
should be fits format, and for full functionality, should ideally of
the form :class:`~pypeit.coadd3d.DataCube`.
senspar (:class:`~pypeit.par.pypeitpar.SensFuncPar`):
The parameters required for the sensitivity function computation.
blaze_wave (`numpy.ndarray`_, optional):
Wavelength array used to construct blaze_spline
blaze_spline (`scipy.interpolate.interp1d`_, optional):
Spline representation of the reference blaze function (based on the illumflat).
grating_corr (:obj:`bool`, optional):
If a grating correction should be performed, set this variable to True.

Returns:
`numpy.ndarray`_: A mask of the good sky pixels (True = good)
"""
# TODO :: This routine has not been updated to the new spec1d plan of passing in a sensfunc object
# :: Probably, this routine should be removed and the functionality moved to the sensfunc object
msgs.error("coding error - make_sensfunc is not currently supported. Please contact the developers")
# Check if the standard star datacube exists
if not os.path.exists(ss_file):
msgs.error("Standard cube does not exist:" + msgs.newline() + ss_file)
msgs.info(f"Loading standard star cube: {ss_file:s}")
# Load the standard star cube and retrieve its RA + DEC
stdcube = fits.open(ss_file)
star_ra, star_dec = stdcube[1].header['CRVAL1'], stdcube[1].header['CRVAL2']

# Extract a spectrum of the standard star
wave, Nlam_star, Nlam_ivar_star, gpm_star = extract_standard_spec(stdcube)

# Extract the information about the blaze
if grating_corr:
blaze_wave_curr, blaze_spec_curr = stdcube['BLAZE_WAVE'].data, stdcube['BLAZE_SPEC'].data
blaze_spline_curr = interp1d(blaze_wave_curr, blaze_spec_curr,
kind='linear', bounds_error=False, fill_value="extrapolate")
# Perform a grating correction
grat_corr = correct_grating_shift(wave, blaze_wave_curr, blaze_spline_curr, blaze_wave, blaze_spline)
# Apply the grating correction to the standard star spectrum
Nlam_star /= grat_corr
Nlam_ivar_star *= grat_corr ** 2

# Read in some information above the standard star
std_dict = flux_calib.get_standard_spectrum(star_type=senspar['star_type'],
star_mag=senspar['star_mag'],
ra=star_ra, dec=star_dec)
# Calculate the sensitivity curve
# TODO :: This needs to be addressed... unify flux calibration into the main PypeIt routines.
msgs.warn("Datacubes are currently flux-calibrated using the UVIS algorithm... this will be deprecated soon")
zeropoint_data, zeropoint_data_gpm, zeropoint_fit, zeropoint_fit_gpm = \
flux_calib.fit_zeropoint(wave, Nlam_star, Nlam_ivar_star, gpm_star, std_dict,
mask_hydrogen_lines=senspar['mask_hydrogen_lines'],
mask_helium_lines=senspar['mask_helium_lines'],
hydrogen_mask_wid=senspar['hydrogen_mask_wid'],
nresln=senspar['UVIS']['nresln'],
resolution=senspar['UVIS']['resolution'],
trans_thresh=senspar['UVIS']['trans_thresh'],
polyorder=senspar['polyorder'],
polycorrect=senspar['UVIS']['polycorrect'],
polyfunc=senspar['UVIS']['polyfunc'])
wgd = np.where(zeropoint_fit_gpm)
sens = np.power(10.0, -0.4 * (zeropoint_fit[wgd] - flux_calib.ZP_UNIT_CONST)) / np.square(wave[wgd])
return interp1d(wave[wgd], sens, kind='linear', bounds_error=False, fill_value="extrapolate")
Loading
Loading