dkist-processing-common 11.9.1rc1__py3-none-any.whl → 11.9.2__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.
@@ -83,19 +83,13 @@ class TransferL1Data(TransferDataBase, GlobusMixin):
83
83
  def transfer_movie(self):
84
84
  """Transfer the movie to the object store."""
85
85
  paths = list(self.read(tags=[Tag.output(), Tag.movie()]))
86
- if len(paths) == 0:
87
- logger.warning(
88
- f"No movies found to upload for dataset. recipe_run_id={self.recipe_run_id}"
89
- )
90
- return
91
- movie = paths[0]
92
- if count := len(paths) > 1:
93
- # note: this needs to be an error or the dataset receipt accounting will have an
94
- # expected count > the eventual actual
86
+
87
+ if count := len(paths) != 1:
95
88
  raise RuntimeError(
96
- f"Multiple movies found to upload. Uploading the first one. "
97
- f"{count=}, {movie=}, recipe_run_id={self.recipe_run_id}"
89
+ f"Expected exactly one movie to upload, found {count}. "
90
+ f"recipe_run_id={self.recipe_run_id}"
98
91
  )
92
+ movie = paths[0]
99
93
  logger.info(f"Uploading Movie: recipe_run_id={self.recipe_run_id}, {movie=}")
100
94
  movie_object_key = self.format_object_key(movie)
101
95
  self.object_store_upload_movie(
@@ -225,6 +225,13 @@ class CreateTrialQualityReport(OutputDataBase):
225
225
  f" but the required dependencies were not found."
226
226
  )
227
227
 
228
+ if not INVENTORY_EXTRA_INSTALLED:
229
+ raise ModuleNotFoundError(
230
+ f"{self.__class__.__name__} Task requires the dkist-inventory package "
231
+ f"(e.g. via an 'inventory' pip_extra on dkist_processing_core.Workflow().add_node())"
232
+ f" but the required dependencies were not found."
233
+ )
234
+
228
235
  def run(self) -> None:
229
236
  """Generate the quality report for the dataset."""
230
237
  self.create_trial_quality_report()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dkist-processing-common
3
- Version: 11.9.1rc1
3
+ Version: 11.9.2
4
4
  Summary: Common task classes used by the DKIST science data processing pipelines
5
5
  Author-email: NSO / AURA <dkistdc@nso.edu>
6
6
  License: BSD-3-Clause
@@ -57,9 +57,9 @@ Requires-Dist: pytest; extra == "docs"
57
57
  Requires-Dist: towncrier<22.12.0; extra == "docs"
58
58
  Requires-Dist: dkist-sphinx-theme; extra == "docs"
59
59
  Provides-Extra: inventory
60
- Requires-Dist: dkist-inventory==1.11.2; extra == "inventory"
60
+ Requires-Dist: dkist-inventory<2.0,>=1.11.2; extra == "inventory"
61
61
  Provides-Extra: asdf
62
- Requires-Dist: dkist-inventory[asdf]==1.11.2; extra == "asdf"
62
+ Requires-Dist: dkist-inventory[asdf]<2.0,>=1.11.2; extra == "asdf"
63
63
  Provides-Extra: quality
64
64
  Requires-Dist: dkist-quality<3.0,>=2.0.0; extra == "quality"
65
65
 
@@ -1,5 +1,4 @@
1
1
  changelog/.gitempty,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- changelog/276.feature.rst,sha256=K05-T0UOeR_wkOFnwSNM-sfMgaOBgQ4NYkAZVq56wQ8,36
3
2
  dkist_processing_common/__init__.py,sha256=GQ9EBnYhkOnt-qODclAoLS_g5YVhurxfg1tjVtI9rDI,320
4
3
  dkist_processing_common/config.py,sha256=f511KVpK24sQO4dDr4L6PMj5dz0jmWgnx2Y-3DpV0cw,5991
5
4
  dkist_processing_common/manual.py,sha256=bIVVyLsbXMh-g_2L3kGROL-1TtJe0_XviHsp7Br31x8,7023
@@ -59,13 +58,13 @@ dkist_processing_common/parsers/wavelength.py,sha256=P5C9mG8DAKK3GB3vWNRBI5l7pAW
59
58
  dkist_processing_common/tasks/__init__.py,sha256=l23ctjNsKJbHbbqaZBMeOPaOtw0hmITEljI_JJ-CVsU,627
60
59
  dkist_processing_common/tasks/assemble_movie.py,sha256=1ixDG-f4ODt0vywqVccG3aodLljVO5OGlvuMO9EEvcU,12767
61
60
  dkist_processing_common/tasks/base.py,sha256=itAHCvzcodo-q8_AjpWoRaM86BlcjWDpCIiUP7uwmP0,13236
62
- dkist_processing_common/tasks/l1_output_data.py,sha256=eF3BvTTH0Bb163_gpJ8epxkjve8YIdrYgPZO_LCMKKo,10717
61
+ dkist_processing_common/tasks/l1_output_data.py,sha256=lNMShQCb3U0p_pp-OwmLQqzQeG_5nA5054ioWB5r7Zw,10367
63
62
  dkist_processing_common/tasks/output_data_base.py,sha256=r1Bu3FX5zTVj66GTMWtaV_NdhxjyjSm661Bt2Mxmfi4,3685
64
63
  dkist_processing_common/tasks/parse_l0_input_data.py,sha256=KguXT0Xavynu7C8NFMjsV4628LRoTvfeSuApb6v4Neg,18835
65
64
  dkist_processing_common/tasks/quality_metrics.py,sha256=cvGF6tJ8yAvxOvkeG3tWxYwL885BrFW5X3V7_MSzL-A,12481
66
65
  dkist_processing_common/tasks/teardown.py,sha256=rwT9lWINVDF11-az_nx-Z5ykMTX_SJCchobpU6sErgk,2360
67
66
  dkist_processing_common/tasks/transfer_input_data.py,sha256=DAYfS-B1o-iBT9MXU-TiJG4Hv05Z0c_JzPrnFgvnK9g,5786
68
- dkist_processing_common/tasks/trial_catalog.py,sha256=jvsc0MpRgZzpQbL7zPSbMtbwVsaGEva_jyAzlpcaZfY,10183
67
+ dkist_processing_common/tasks/trial_catalog.py,sha256=Yf-BKNCT_OHwJsxxZP8p2eRW04CcY0tw5_YIe1e9RQY,10535
69
68
  dkist_processing_common/tasks/trial_output_data.py,sha256=pUdrNlAzuir4AUdfax5_MOplB-A9NrXErMJmAwtJmLA,6811
70
69
  dkist_processing_common/tasks/write_l1.py,sha256=Xy834RTp3F95kLcW4ba5gfHMUocfZd82ZQQKnvQcP2M,23204
71
70
  dkist_processing_common/tasks/mixin/__init__.py,sha256=-g-DQbU7m1bclJYuFe3Yh757V-35GIDTbstardKQ7nU,68
@@ -120,7 +119,7 @@ docs/landing_page.rst,sha256=aPAuXFhBx73lEZ59B6E6JXxkK0LlxzD0n-HXqHrfumQ,746
120
119
  docs/make.bat,sha256=mBAhtURwhQ7yc95pqwJzlhqBSvRknr1aqZ5s8NKvdKs,4513
121
120
  docs/requirements.txt,sha256=Kbl_X4c7RQZw035YTeNB63We6I7pvXFU4T0Uflp2yDY,29
122
121
  licenses/LICENSE.rst,sha256=piZaQplkzOMmH1NXg6QIdo9wwo9pPCoHkvm2-DmH76E,1462
123
- dkist_processing_common-11.9.1rc1.dist-info/METADATA,sha256=G6Szqt-Q3-zwmfpT492zdZYQQIONYMKjTJDsBqG5VB8,14055
124
- dkist_processing_common-11.9.1rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
125
- dkist_processing_common-11.9.1rc1.dist-info/top_level.txt,sha256=LJhd1W-Vn90K8HnQDIE4r52YDpUjjMWDnllAWHBByW0,48
126
- dkist_processing_common-11.9.1rc1.dist-info/RECORD,,
122
+ dkist_processing_common-11.9.2.dist-info/METADATA,sha256=KayywRESXbqKEpGnqe9CzzDiWCiGQ1efZqwWi-ziIYw,14062
123
+ dkist_processing_common-11.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
124
+ dkist_processing_common-11.9.2.dist-info/top_level.txt,sha256=LJhd1W-Vn90K8HnQDIE4r52YDpUjjMWDnllAWHBByW0,48
125
+ dkist_processing_common-11.9.2.dist-info/RECORD,,
changelog/276.feature.rst DELETED
@@ -1 +0,0 @@
1
- Store quality data in object store.