dkist-processing-dlnirsp 0.34.0rc5__py3-none-any.whl → 0.34.1__py3-none-any.whl

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.
@@ -1,9 +1,7 @@
1
1
  """Parsing Stems for answering time-related questions."""
2
2
 
3
- from typing import Hashable
4
-
5
3
  from dkist_processing_common.models.fits_access import MetadataKey
6
- from dkist_processing_common.models.flower_pot import Stem
4
+ from dkist_processing_common.models.flower_pot import SetStem
7
5
  from dkist_processing_common.models.task_name import TaskName
8
6
  from dkist_processing_common.parsers.task import parse_header_ip_task_with_gains
9
7
  from dkist_processing_common.parsers.unique_bud import TaskUniqueBud
@@ -24,7 +22,7 @@ class DLnirspSolarGainIpStartTimeBud(TaskUniqueBud):
24
22
  )
25
23
 
26
24
 
27
- class DlnirspTimeObsBud(Stem):
25
+ class DlnirspTimeObsBud(SetStem):
28
26
  """
29
27
  Produce a tuple of all time_obs values present in the dataset.
30
28
 
@@ -35,7 +33,7 @@ class DlnirspTimeObsBud(Stem):
35
33
  def __init__(self):
36
34
  super().__init__(stem_name=DlnirspBudName.time_obs_list.value)
37
35
 
38
- def setter(self, fits_obj: DlnirspRampFitsAccess):
36
+ def setter(self, fits_obj: DlnirspRampFitsAccess) -> str:
39
37
  """
40
38
  Set the time_obs for this fits object.
41
39
 
@@ -43,24 +41,20 @@ class DlnirspTimeObsBud(Stem):
43
41
  ----------
44
42
  fits_obj
45
43
  The input fits object
44
+
46
45
  Returns
47
46
  -------
48
47
  The time_obs value associated with this fits object
49
48
  """
50
49
  return fits_obj.time_obs
51
50
 
52
- def getter(self, key: Hashable) -> Hashable:
51
+ def getter(self) -> tuple[str, ...]:
53
52
  """
54
53
  Get the list of time_obs values.
55
54
 
56
- Parameters
57
- ----------
58
- key
59
- The input key
60
-
61
55
  Returns
62
56
  -------
63
57
  A tuple of exposure times
64
58
  """
65
- time_obs_tup = tuple(sorted(set(self.key_to_petal_dict.values())))
59
+ time_obs_tup = tuple(sorted(self.value_set))
66
60
  return time_obs_tup
@@ -39,7 +39,7 @@ def correct_header_PC_matrix(header: fits.Header, pc_correction_matrix: np.ndarr
39
39
  A `fits.Header` object that contains PC[12]_[12] keys
40
40
 
41
41
  pc_correction_matrix
42
- A 2x2 numpy array containg the correction matrix
42
+ A 2x2 numpy array containing the correction matrix
43
43
 
44
44
  Returns
45
45
  -------
@@ -2,6 +2,7 @@
2
2
 
3
3
  from typing import TypeVar
4
4
 
5
+ from dkist_processing_common.models.constants import BudName
5
6
  from dkist_processing_common.models.fits_access import MetadataKey
6
7
  from dkist_processing_common.models.flower_pot import Stem
7
8
  from dkist_processing_common.models.task_name import TaskName
@@ -39,7 +40,6 @@ from dkist_processing_dlnirsp.parsers.mosaic import NumMosaicYTilesBud
39
40
  from dkist_processing_dlnirsp.parsers.task import DlnirspTaskTypeFlower
40
41
  from dkist_processing_dlnirsp.parsers.time import DLnirspSolarGainIpStartTimeBud
41
42
  from dkist_processing_dlnirsp.parsers.time import DlnirspTimeObsBud
42
- from dkist_processing_dlnirsp.parsers.wavelength import ObserveWavelengthBud
43
43
 
44
44
  S = TypeVar("S", bound=Stem)
45
45
 
@@ -144,7 +144,11 @@ class ParseL0DlnirspLinearizedData(ParseDataBase):
144
144
  def constant_buds(self) -> list[S]:
145
145
  """Add DLNIRSP specific constants to common constants."""
146
146
  return default_constant_bud_factory() + [
147
- ObserveWavelengthBud(),
147
+ TaskUniqueBud(
148
+ constant_name=BudName.wavelength,
149
+ metadata_key=MetadataKey.wavelength,
150
+ ip_task_types=TaskName.observe,
151
+ ),
148
152
  TaskUniqueBud(
149
153
  constant_name=DlnirspBudName.obs_ip_end_time.value,
150
154
  metadata_key=MetadataKey.ip_end_time,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dkist-processing-dlnirsp
3
- Version: 0.34.0rc5
3
+ Version: 0.34.1
4
4
  Summary: Science processing code for the DLNIRSP instrument on DKIST
5
5
  Author-email: NSO / AURA <dkistdc@nso.edu>
6
6
  License: BSD-3-Clause
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/x-rst
16
- Requires-Dist: dkist-processing-common==12.0.0rc7
16
+ Requires-Dist: dkist-processing-common==12.1.0
17
17
  Requires-Dist: dkist-processing-math==2.2.1
18
18
  Requires-Dist: dkist-processing-pac==3.1.1
19
19
  Requires-Dist: dkist-header-validator==5.2.1
@@ -85,7 +85,7 @@ Requires-Dist: aioftp==0.27.2; extra == "frozen"
85
85
  Requires-Dist: aiohappyeyeballs==2.6.1; extra == "frozen"
86
86
  Requires-Dist: aiohttp==3.13.3; extra == "frozen"
87
87
  Requires-Dist: aiosignal==1.4.0; extra == "frozen"
88
- Requires-Dist: aiosmtplib==5.0.0; extra == "frozen"
88
+ Requires-Dist: aiosmtplib==5.1.0; extra == "frozen"
89
89
  Requires-Dist: aiosqlite==0.21.0; extra == "frozen"
90
90
  Requires-Dist: alembic==1.18.1; extra == "frozen"
91
91
  Requires-Dist: amqp==5.3.1; extra == "frozen"
@@ -108,14 +108,14 @@ Requires-Dist: asdf_transform_schemas==0.6.0; extra == "frozen"
108
108
  Requires-Dist: asgiref==3.11.0; extra == "frozen"
109
109
  Requires-Dist: asteval==1.0.8; extra == "frozen"
110
110
  Requires-Dist: astropy==7.0.2; extra == "frozen"
111
- Requires-Dist: astropy-iers-data==0.2026.1.19.0.42.31; extra == "frozen"
111
+ Requires-Dist: astropy-iers-data==0.2026.1.26.0.43.56; extra == "frozen"
112
112
  Requires-Dist: astropy_healpix==1.1.3; extra == "frozen"
113
113
  Requires-Dist: asyncpg==0.31.0; extra == "frozen"
114
114
  Requires-Dist: attrs==25.4.0; extra == "frozen"
115
115
  Requires-Dist: babel==2.17.0; extra == "frozen"
116
116
  Requires-Dist: billiard==4.2.4; extra == "frozen"
117
- Requires-Dist: boto3==1.42.32; extra == "frozen"
118
- Requires-Dist: botocore==1.42.32; extra == "frozen"
117
+ Requires-Dist: boto3==1.42.34; extra == "frozen"
118
+ Requires-Dist: botocore==1.42.34; extra == "frozen"
119
119
  Requires-Dist: cadwyn==5.4.6; extra == "frozen"
120
120
  Requires-Dist: celery==5.6.2; extra == "frozen"
121
121
  Requires-Dist: certifi==2026.1.4; extra == "frozen"
@@ -138,9 +138,9 @@ Requires-Dist: dask-image==2025.11.0; extra == "frozen"
138
138
  Requires-Dist: decorator==5.2.1; extra == "frozen"
139
139
  Requires-Dist: dill==0.4.1; extra == "frozen"
140
140
  Requires-Dist: dkist-header-validator==5.2.1; extra == "frozen"
141
- Requires-Dist: dkist-processing-common==12.0.0rc7; extra == "frozen"
142
- Requires-Dist: dkist-processing-core==7.0.0rc9; extra == "frozen"
143
- Requires-Dist: dkist-processing-dlnirsp==0.34.0rc5; extra == "frozen"
141
+ Requires-Dist: dkist-processing-common==12.1.0; extra == "frozen"
142
+ Requires-Dist: dkist-processing-core==7.0.1; extra == "frozen"
143
+ Requires-Dist: dkist-processing-dlnirsp==0.34.1; extra == "frozen"
144
144
  Requires-Dist: dkist-processing-math==2.2.1; extra == "frozen"
145
145
  Requires-Dist: dkist-processing-pac==3.1.1; extra == "frozen"
146
146
  Requires-Dist: dkist-service-configuration==4.2.0; extra == "frozen"
@@ -161,7 +161,7 @@ Requires-Dist: google-crc32c==1.8.0; extra == "frozen"
161
161
  Requires-Dist: googleapis-common-protos==1.72.0; extra == "frozen"
162
162
  Requires-Dist: gqlclient==1.2.3; extra == "frozen"
163
163
  Requires-Dist: greenback==1.3.0; extra == "frozen"
164
- Requires-Dist: greenlet==3.3.0; extra == "frozen"
164
+ Requires-Dist: greenlet==3.3.1; extra == "frozen"
165
165
  Requires-Dist: grpcio==1.76.0; extra == "frozen"
166
166
  Requires-Dist: h11==0.16.0; extra == "frozen"
167
167
  Requires-Dist: httpcore==1.0.9; extra == "frozen"
@@ -194,7 +194,7 @@ Requires-Dist: methodtools==0.4.7; extra == "frozen"
194
194
  Requires-Dist: more-itertools==10.8.0; extra == "frozen"
195
195
  Requires-Dist: moviepy==2.2.1; extra == "frozen"
196
196
  Requires-Dist: msgspec==0.20.0; extra == "frozen"
197
- Requires-Dist: multidict==6.7.0; extra == "frozen"
197
+ Requires-Dist: multidict==6.7.1; extra == "frozen"
198
198
  Requires-Dist: natsort==8.4.0; extra == "frozen"
199
199
  Requires-Dist: nbformat==5.10.4; extra == "frozen"
200
200
  Requires-Dist: networkx==3.6.1; extra == "frozen"
@@ -229,7 +229,7 @@ Requires-Dist: opentelemetry-util-http==0.60b1; extra == "frozen"
229
229
  Requires-Dist: outcome==1.3.0.post0; extra == "frozen"
230
230
  Requires-Dist: packaging==26.0; extra == "frozen"
231
231
  Requires-Dist: pandas==3.0.0; extra == "frozen"
232
- Requires-Dist: parfive==2.2.0; extra == "frozen"
232
+ Requires-Dist: parfive==2.3.0; extra == "frozen"
233
233
  Requires-Dist: partd==1.4.2; extra == "frozen"
234
234
  Requires-Dist: pathspec==1.0.3; extra == "frozen"
235
235
  Requires-Dist: pendulum==3.1.0; extra == "frozen"
@@ -257,14 +257,14 @@ Requires-Dist: pyparsing==3.3.2; extra == "frozen"
257
257
  Requires-Dist: python-daemon==3.1.2; extra == "frozen"
258
258
  Requires-Dist: python-dateutil==2.9.0.post0; extra == "frozen"
259
259
  Requires-Dist: python-dotenv==1.2.1; extra == "frozen"
260
- Requires-Dist: python-multipart==0.0.21; extra == "frozen"
260
+ Requires-Dist: python-multipart==0.0.22; extra == "frozen"
261
261
  Requires-Dist: python-slugify==8.0.4; extra == "frozen"
262
262
  Requires-Dist: pytz==2025.2; extra == "frozen"
263
263
  Requires-Dist: redis==6.4.0; extra == "frozen"
264
264
  Requires-Dist: referencing==0.37.0; extra == "frozen"
265
265
  Requires-Dist: reproject==0.19.0; extra == "frozen"
266
266
  Requires-Dist: requests==2.32.5; extra == "frozen"
267
- Requires-Dist: rich==14.2.0; extra == "frozen"
267
+ Requires-Dist: rich==14.3.1; extra == "frozen"
268
268
  Requires-Dist: rich-argparse==1.7.2; extra == "frozen"
269
269
  Requires-Dist: rich-toolkit==0.17.1; extra == "frozen"
270
270
  Requires-Dist: rpds-py==0.30.0; extra == "frozen"
@@ -309,7 +309,7 @@ Requires-Dist: uvloop==0.22.1; extra == "frozen"
309
309
  Requires-Dist: vine==5.1.0; extra == "frozen"
310
310
  Requires-Dist: voluptuous==0.16.0; extra == "frozen"
311
311
  Requires-Dist: watchfiles==1.1.1; extra == "frozen"
312
- Requires-Dist: wcwidth==0.3.0; extra == "frozen"
312
+ Requires-Dist: wcwidth==0.4.0; extra == "frozen"
313
313
  Requires-Dist: websockets==16.0; extra == "frozen"
314
314
  Requires-Dist: wirerope==1.0.0; extra == "frozen"
315
315
  Requires-Dist: wrapt==1.17.3; extra == "frozen"
@@ -1,5 +1,4 @@
1
1
  changelog/.gitempty,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- changelog/129.misc.rst,sha256=qftQKbZtkNBq5aH3JiQo4Et_za0vq1YZnikiEbbIQYc,63
3
2
  dkist_processing_dlnirsp/__init__.py,sha256=GQ9EBnYhkOnt-qODclAoLS_g5YVhurxfg1tjVtI9rDI,320
4
3
  dkist_processing_dlnirsp/config.py,sha256=3jM7P00T-Xlzfnvc3jwRiFtinW5GoTczQ6qNLLpwQCo,624
5
4
  dkist_processing_dlnirsp/dev_scripts/__init__.py,sha256=tITkbcFg1a-24sdFaWK8OyLrQSQk7AI6Ycs8PHHfHEM,83
@@ -15,9 +14,8 @@ dkist_processing_dlnirsp/parsers/dlnirsp_l0_fits_access.py,sha256=ziUeSWPOiFV0Hd
15
14
  dkist_processing_dlnirsp/parsers/dlnirsp_l1_fits_acess.py,sha256=K-9HRVZ02IUl0wRnhlTMnwSikTt7vYi_zSWYs0V_6-Y,878
16
15
  dkist_processing_dlnirsp/parsers/mosaic.py,sha256=0z0sTbDQFhg2hyCp6hSKFpuaS-rOSUBvuBOT6mSSadA,31061
17
16
  dkist_processing_dlnirsp/parsers/task.py,sha256=wtg8kNuxqGHaK34dJAZ92-f29-3V1QrnLGUGRAebUUk,990
18
- dkist_processing_dlnirsp/parsers/time.py,sha256=bdsNRXGpiKe7nBt3rOvk5gKYtqo10nFkTR9EMwbDcsg,2093
19
- dkist_processing_dlnirsp/parsers/wavelength.py,sha256=CHZDFqOpzErhaR0MSbzQ6NiagdmkVkZ-6HWRERH5TNY,972
20
- dkist_processing_dlnirsp/parsers/wcs_corrections.py,sha256=yeTLowmtAIs5sjNStIKmBTZUxttOtldJSeW_adsXFYQ,1786
17
+ dkist_processing_dlnirsp/parsers/time.py,sha256=T56-uJRvcR2fTmqJw7kqkURzcDbtvX4xyaNN598p4n0,1971
18
+ dkist_processing_dlnirsp/parsers/wcs_corrections.py,sha256=pbVg1unWY3CGQFD2ib3A9lGIac7JzQrV50LPZGUdskY,1788
21
19
  dkist_processing_dlnirsp/tasks/__init__.py,sha256=zGSL-fIB0el6PCjf4VEIHU_pOTv945D95I2G4vxHtHA,924
22
20
  dkist_processing_dlnirsp/tasks/bad_pixel_map.py,sha256=ZzG86mXped2k2PjX7okKAi3JCQGJHalBhBgFU-T8K_8,8194
23
21
  dkist_processing_dlnirsp/tasks/dark.py,sha256=rFnVULAunChEdxEXcosxNJM_iqRGslia9cUnV1FAOQQ,3580
@@ -29,7 +27,7 @@ dkist_processing_dlnirsp/tasks/l1_output_data.py,sha256=Psta0476jih-cfmpdnzmquys
29
27
  dkist_processing_dlnirsp/tasks/lamp.py,sha256=twoMHMnE2jm2OYxkeHFcjqcyQYVtEjSU2_z2mmn3Ybs,5390
30
28
  dkist_processing_dlnirsp/tasks/linearity_correction.py,sha256=z3MpWHp0lZYB2zrfHfH7HlcKoro6TPxwEN8rpqVv08c,22716
31
29
  dkist_processing_dlnirsp/tasks/movie.py,sha256=IaZCRg2KIETEXDyyOe3FLoY5cd7eJOhMtjkiSYjElEU,44291
32
- dkist_processing_dlnirsp/tasks/parse.py,sha256=WGFIssavbQg1BAbW0_jS56SoEya-X-bHkLTbxTooUFI,11218
30
+ dkist_processing_dlnirsp/tasks/parse.py,sha256=shhepxnN2s3u9EFfMOAIaIN-be5Wtsaw0H6Trh5kOOQ,11359
33
31
  dkist_processing_dlnirsp/tasks/quality_metrics.py,sha256=1ScLAinv3WG-0M7u_26gnogbJ_D84K9CP7eRvEuwb9E,7346
34
32
  dkist_processing_dlnirsp/tasks/science.py,sha256=sNI4AYO10qe3JL62KWXR87MnfX9m85Jo4_PkQ0qd5TQ,35737
35
33
  dkist_processing_dlnirsp/tasks/solar.py,sha256=hVOVwQkzO4kioPDgJz3GqSNcisfpEMbDPESJN-INh10,15494
@@ -93,8 +91,8 @@ docs/science_calibration.rst,sha256=JUMeS7KyIsL9cUuy-IdV2tQ-wQ2lBx6j8u_51ThJzVg,
93
91
  docs/scientific_changelog.rst,sha256=01AWBSHg8zElnodCgAq-hMxhk9CkX5rtEENx4iz0sjI,300
94
92
  docs/wavelength_calibration.rst,sha256=QGUd5Xmv5f7WQ1EKvw2CcgiMJQULjzdCW1hSQ8h8jj0,4123
95
93
  licenses/LICENSE.rst,sha256=piZaQplkzOMmH1NXg6QIdo9wwo9pPCoHkvm2-DmH76E,1462
96
- dkist_processing_dlnirsp-0.34.0rc5.dist-info/METADATA,sha256=lB_sK4g8mWQDrMFH7t1BhWJPJXIHzGo79sBQNP2AAhM,30450
97
- dkist_processing_dlnirsp-0.34.0rc5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
98
- dkist_processing_dlnirsp-0.34.0rc5.dist-info/entry_points.txt,sha256=p4-7cpIfxmQGFUDIP5n5noE5KADHN2-JvV03e0gOx9s,140
99
- dkist_processing_dlnirsp-0.34.0rc5.dist-info/top_level.txt,sha256=4WmLV9LQM78KTFnkHmtaOJvVHAPpz0m9ruzDS-B_cUo,49
100
- dkist_processing_dlnirsp-0.34.0rc5.dist-info/RECORD,,
94
+ dkist_processing_dlnirsp-0.34.1.dist-info/METADATA,sha256=vD2B7XcIbZteiQgRO2HGdTyqybyoYQwor14vfUPgFpU,30435
95
+ dkist_processing_dlnirsp-0.34.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
+ dkist_processing_dlnirsp-0.34.1.dist-info/entry_points.txt,sha256=p4-7cpIfxmQGFUDIP5n5noE5KADHN2-JvV03e0gOx9s,140
97
+ dkist_processing_dlnirsp-0.34.1.dist-info/top_level.txt,sha256=4WmLV9LQM78KTFnkHmtaOJvVHAPpz0m9ruzDS-B_cUo,49
98
+ dkist_processing_dlnirsp-0.34.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
changelog/129.misc.rst DELETED
@@ -1 +0,0 @@
1
- Upgrade to use Airflow 3 and a minimum python version of 3.13.
@@ -1,31 +0,0 @@
1
- """Bud to get the wavelength."""
2
-
3
- from dkist_processing_common.models.fits_access import MetadataKey
4
- from dkist_processing_common.models.flower_pot import SpilledDirt
5
- from dkist_processing_common.parsers.unique_bud import UniqueBud
6
-
7
- from dkist_processing_dlnirsp.models.constants import DlnirspBudName
8
- from dkist_processing_dlnirsp.parsers.dlnirsp_l0_fits_access import DlnirspL0FitsAccess
9
-
10
-
11
- class ObserveWavelengthBud(UniqueBud):
12
- """Bud to find the wavelength."""
13
-
14
- def __init__(self):
15
- super().__init__(
16
- constant_name=DlnirspBudName.wavelength.value,
17
- metadata_key=MetadataKey.wavelength,
18
- )
19
-
20
- def setter(self, fits_obj: DlnirspL0FitsAccess):
21
- """
22
- Set the value of the bud.
23
-
24
- Parameters
25
- ----------
26
- fits_obj:
27
- A single FitsAccess object
28
- """
29
- if fits_obj.ip_task_type.lower() != "observe":
30
- return SpilledDirt
31
- return super().setter(fits_obj)