Skip to content

Commit 285341d

Browse files
committed
Revert "Merge remote-tracking branch 'origin/enh/checkProcessedArc' into enh/auto_wavecal_help"
This reverts commit 00ed143, reversing changes made to 465eb5b.
1 parent 00ed143 commit 285341d

60 files changed

Lines changed: 76 additions & 1212 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ conda config --add channels http://astroconda.gemini.edu/public
4040
```
4141

4242

43-
A list of changes since 4.1 can be found in the [Change Logs](https://dragons.readthedocs.io/en/v4.2.1/changes.html).
43+
A list of changes since 4.1 can be found in the [Change Logs](https://dragons.readthedocs.io/en/v4.2.0/changes.html).
4444

4545
---
4646
# What is DRAGONS

astrodata/_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
# --- Setup Version Here ---
8-
API = 5
9-
FEATURE = 0
10-
BUG = 0
11-
TAG = 'dev'
8+
API = 4
9+
FEATURE = 2
10+
BUG = 1
11+
TAG = ''
1212

1313

1414
def version(short=False, tag=TAG):

astrodata/doc/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
# built documents.
5858
#
5959
# The short X.Y version.
60-
version = '5.0_dev'
60+
version = '4.2'
6161
# The full version, including alpha/beta/rc tags.
62-
#release = '4.2.1'
63-
#rtdurl = 'v'+release
62+
release = '4.2.1'
63+
rtdurl = 'v'+release
6464
#release = '4.2.x'
6565
#rtdurl = 'release-'+release
66-
rtdurl = 'latest'
66+
#rtdurl = 'latest'
6767

6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation

doc/DRAGONS/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '5.0_dev'
62+
version = '4.2'
6363
# The full version, including alpha/beta/rc tags.
64-
#release = '4.2.1'
65-
#rtdurl = 'v'+release
64+
release = '4.2.1'
65+
rtdurl = 'v'+release
6666
#release = '4.2.x'
6767
#rtdurl = 'release-'+release
68-
rtdurl = 'latest'
68+
#rtdurl = 'latest'
6969

7070
# The language for content autogenerated by Sphinx. Refer to documentation
7171
# for a list of supported languages.

doc/DRAGONS/dragonsteam.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Current DRAGONS Team
1818

1919
* Paul Hirst
2020
* Kathleen Labrie
21+
* Mark Rawlings
2122
* Chris Simpson
2223
* Olesja Smirnova
2324
* Monika Soraisam
@@ -35,7 +36,6 @@ Past DRAGONS Team Members
3536
* Simon Conseil
3637
* Oliver Oberdorf
3738
* Bruno Quint
38-
* Mark Rawlings
3939
* D.J. Teal
4040
* Joanna Thomas-Osip
4141

geminidr/core/parameters_calibdb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class getProcessedTelluricConfig(config.Config):
6060
class getProcessedTelluricConfig(config.Config):
6161
pass
6262

63+
6364
class getBPMConfig(config.Config):
6465
pass
6566

@@ -135,5 +136,6 @@ class storeProcessedStandardConfig(config.Config):
135136
class storeProcessedSlitIllumConfig(config.Config):
136137
suffix = config.Field("Filename suffix", str, "_slitIllum", optional=True)
137138

139+
138140
class storeProcessedTelluricConfig(config.Config):
139141
suffix = config.Field("Filename suffix", str, "_telluric", optional=True)

geminidr/core/parameters_spect.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@ class maskBeyondSlitConfig(config.Config):
579579
"Minimum fraction of pixel that must be illuminated to not be masked",
580580
float, 0.9, min=0., max=1., inclusiveMax=True)
581581

582-
class monitorWavelengthSolutionConfig(config.Config):
583-
suffix = config.Field("Filename suffix", str, "_wavelengthSolutionMonitoring", optional=True)
584582

585583
class normalizeFlatConfig(config.core_1Dfitting_config):
586584
suffix = config.Field("Filename suffix", str, "_normalized", optional=True)

geminidr/core/primitives_spect.py

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from importlib import import_module
1717

1818
import matplotlib
19-
import numpy
2019
import numpy as np
2120
from astropy import units as u
2221
from astropy.io.ascii.core import InconsistentTableError
@@ -4014,63 +4013,6 @@ def maskBeyondSlit(self, adinputs=None, **params):
40144013

40154014
return adinputs
40164015

4017-
def monitorWavelengthSolution(self, adinputs=None, **params):
4018-
"""
4019-
This captures some info from the wavelength solution for the GOA
4020-
instrument monitoring system into various MWS_ headers for the instrument
4021-
monitoring system to pick up.
4022-
4023-
Values Captured include the polynomial coefficients and RMS from the
4024-
.WAVECAL table, the central wavelength from both the WCS and central_wavlength()
4025-
descriptor and the difference between them.
4026-
:return:
4027-
"""
4028-
log = self.log
4029-
log.debug(gt.log_message("primitive", self.myself(), "starting"))
4030-
4031-
tocapture = ('c0', 'c1', 'c2', 'c3', 'rms', 'inv_rms', 'fwidth')
4032-
4033-
for ad in adinputs:
4034-
for ext in ad:
4035-
wavecal = getattr(ext, 'WAVECAL', None)
4036-
if wavecal is None:
4037-
continue
4038-
4039-
for row in wavecal:
4040-
# Capture values from WAVEVAL table into monitoring headers
4041-
if row['name'] in tocapture:
4042-
keyword = 'MWS_' + row['name'].upper()[:4]
4043-
if row['name'] == 'inv_rms':
4044-
keyword = 'MWS_IRMS'
4045-
ext.hdr[keyword] = (row['coefficients'],
4046-
f'WAVECAL {row['name']} coefficient')
4047-
4048-
# Get the model and evaluate it at the mean of its domain
4049-
model = am.get_named_submodel(ext.wcs.forward_transform, "WAVE")
4050-
if model:
4051-
# Central Wavelength check
4052-
center = np.mean(model.domain)
4053-
model_central_wlen = model(center)
4054-
# We want actual_central_wavelength rather than central_wavelength
4055-
header_central_wlen = ext.actual_central_wavelength(asNanometers=True)
4056-
4057-
ext.hdr['MWS_DCWL'] = (model_central_wlen - header_central_wlen,
4058-
'Delta between model and header central_wavelength')
4059-
4060-
# Dispersion check
4061-
model_dispersion = model(center+0.5) - model(center-0.5)
4062-
header_dispersion = ext.dispersion(asNanometers=True)
4063-
ext.hdr['MWS_DDIS'] = (model_dispersion - header_dispersion,
4064-
'Delta between model and header dispersion')
4065-
4066-
4067-
# Count the number of arc lines in the wavecal table
4068-
ext.hdr['MWS_NUML'] = (numpy.count_nonzero(wavecal['peaks']),
4069-
'Number of non-zero peaks in the WAVECAL table')
4070-
4071-
ad.update_filename(suffix=params["suffix"], strip=True)
4072-
4073-
return adinputs
40744016

40754017
def normalizeFlat(self, adinputs=None, **params):
40764018
"""

geminidr/doc/tutorials/F2Img-DRTutorial/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636

3737
# The short X.Y version
3838
#version = astrodata.version(short=True)
39-
version = '5.0_dev'
39+
version = '4.2'
4040

4141
# The full version, including alpha/beta/rc tags
4242
#release = astrodata.version()
43-
#release = '4.2.1'
44-
#rtdurl = 'v'+release
43+
release = '4.2.1'
44+
rtdurl = 'v'+release
4545
#release = '4.2.x'
4646
#rtdurl = 'release-'+release
47-
rtdurl = 'latest'
47+
#rtdurl = 'latest'
4848

4949
# -- General configuration ---------------------------------------------------
5050

geminidr/doc/tutorials/F2LS-DRTutorial/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
author = 'DRAGONS Team'
1212

1313
# The short X.Y version
14-
version = '5.0_dev'
14+
version = '4.2'
1515

1616
# The full version, including alpha/beta/rc tags
17-
#release = '4.2.1'
18-
#rtdurl = 'v'+release
17+
release = '4.2.1'
18+
rtdurl = 'v'+release
1919
#release = '4.2.x'
2020
#rtdurl = 'release-'+release
21-
rtdurl = 'latest'
21+
#rtdurl = 'latest'
2222

2323
today = 'April 2026'
2424

0 commit comments

Comments
 (0)