PyNOT-redux 2.2__tar.gz → 2.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PKG-INFO +1 -1
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/PKG-INFO +1 -1
- pynot_redux-2.2.1/pynot/VERSION +1 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/notes.py +18 -11
- pynot_redux-2.2/pynot/VERSION +0 -1
- {pynot_redux-2.2 → pynot_redux-2.2.1}/.gitattributes +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/.github/dependabot.yml +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/.gitignore +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/LICENSE +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/MANIFEST.in +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/SOURCES.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/dependency_links.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/entry_points.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/requires.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/PyNOT_redux.egg-info/top_level.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/README.md +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/.extract_msg +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/.identify_msg +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/.instrument.cfg +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/.response_msg +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/__init__.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/alfosc.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/HeAr_linelist.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/HeNe_linelist.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/ThAr_linelist.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/al-gr18_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/al-gr19_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/al-gr4_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/al-gr7_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/alfosc_filters.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/default_options.yml +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/default_options_img.yml +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/ef-gr13_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/ef-gr14_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/ef-gr1_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/ef-gr3_pixeltable.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/efosc_filters.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/lapalma.ext +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/lasilla.ext +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/paranal.ext +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/bd174708.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/bd262606.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/bd332642.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/bd75325.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/eg21.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/feige110.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/feige34.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/gd153.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/gd50.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/gd71.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/hd19445.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/hd84937.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/hd93521.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/he3.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/hiltner600.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/ltt3864.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/tcs_namelist.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calib/std/wolf1346.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/calibs.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/__init__.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/alfosc.rules +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/efosc.rules +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/help/welcome_msg_extract.html +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/help/welcome_msg_identify.html +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/help/welcome_msg_response.html +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/io.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/obs.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/data/organizer.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/efosc.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/extract_gui.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/extraction.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/fitsio.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/functions.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/identify_gui.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/images.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/insconfig.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/logging.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/main.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/operations.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/phot.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/phot_redux.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/redux.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/reports.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/response.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/response_gui.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/scired.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/scombine.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/skysub.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/tasks.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/transients.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/txtio.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/__init__.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/containers.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/default_linelists.json +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/dust.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/linelists.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/messages.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/models.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/spectrum.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/tablemodels.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/targets.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/Assef_2010.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/FeII.Vestergaard.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/FeIII.Vestergaard.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/Hernan_Caballero_quasar_NIR_template.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/QSO_selsing.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/QSO_template.Krawczyk_all.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/QSO_template.Krawczyk_high.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/templates/QSO_template.Krawczyk_low.dat +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/viewer/viewer.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/wavecal.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/wcs.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pynot/welcome.py +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/pyproject.toml +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/requirements.txt +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/setup.cfg +0 -0
- {pynot_redux-2.2 → pynot_redux-2.2.1}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.1
|
|
@@ -16,8 +16,10 @@ class DataFlag(IntFlag):
|
|
|
16
16
|
BAD_SKYSUB = 2**2 # Problem with sky subtraction
|
|
17
17
|
WRONG_Z = 2**3 # Incorrect redshift
|
|
18
18
|
Z_VI_CONFIRM = 2**4 # Assigned if the redshift has been updated
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
BROAD_LINE = 2**5 # Spectrum has broad lines
|
|
20
|
+
NARROW_LINE = 2**6 # Spectrum has narrow lines
|
|
21
|
+
PASSIVE_GALAXY = 2**7 # Spectrum is a passive galaxy without emission lines
|
|
22
|
+
NO_SIGNAL = 2**8 # No identifiable features in the spectrum
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
def get_flags(self):
|
|
@@ -57,7 +59,7 @@ class TargetNote:
|
|
|
57
59
|
|
|
58
60
|
|
|
59
61
|
REDSHIFT_NAMES = ['REDSHIFT', 'Z_SPEC', 'ZBEST', 'Z_PIPE', 'ZSPEC', 'Z', 'ZFIT', 'Z_VI']
|
|
60
|
-
ID_NAMES = ['OBJ_NME', 'OBJ_UID', 'SPECUID', 'NAME', 'OBJECT', 'TARGET', 'TARGETID', 'ID', 'UID']
|
|
62
|
+
ID_NAMES = ['OBJ_NME', 'OBJ_UID', 'SPECUID', 'NAME', 'OBJECT', 'TARGET', 'TARGETID', 'ID', 'UID', 'FILENAME']
|
|
61
63
|
CLASS_NAMES = ['TYPE', 'ZBESTTYPE', 'SPECTYPE', 'CLASS', 'CLASSIFICATION', 'OBJ_CLS']
|
|
62
64
|
|
|
63
65
|
|
|
@@ -156,15 +158,20 @@ def redshift_table_lookup(redshift_table, spectrum):
|
|
|
156
158
|
the function returns (np.nan, "").
|
|
157
159
|
"""
|
|
158
160
|
name_column = redshift_table.meta['NAME_COLUMN']
|
|
159
|
-
if not spectrum.meta:
|
|
160
|
-
logging.error("Could not find a redshift. Spectrum has no metadata")
|
|
161
|
-
return np.nan, ""
|
|
162
161
|
|
|
163
|
-
|
|
164
|
-
name = spectrum.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
if name_column.upper() == 'FILENAME':
|
|
163
|
+
name = spectrum.filename
|
|
164
|
+
|
|
165
|
+
else:
|
|
166
|
+
if not spectrum.meta:
|
|
167
|
+
logging.error("Could not find a redshift. Spectrum has no metadata")
|
|
168
|
+
return np.nan, ""
|
|
169
|
+
|
|
170
|
+
try:
|
|
171
|
+
name = spectrum.meta[name_column]
|
|
172
|
+
except KeyError:
|
|
173
|
+
logging.error(f"Could not find a redshift. Spectrum has no {name_column} meta data")
|
|
174
|
+
return np.nan, ""
|
|
168
175
|
|
|
169
176
|
try:
|
|
170
177
|
row = redshift_table.loc[name]
|
pynot_redux-2.2/pynot/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|