dkist-processing-common 10.7.0__py3-none-any.whl → 10.7.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.
- dkist_processing_common/tests/test_fits_access.py +15 -8
- {dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/METADATA +1 -1
- {dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/RECORD +5 -5
- {dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/WHEEL +0 -0
- {dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/top_level.txt +0 -0
|
@@ -22,19 +22,21 @@ def hdu_with_complete_common_header(complete_common_header):
|
|
|
22
22
|
def hdu_with_special_keys(hdu_with_complete_common_header, request):
|
|
23
23
|
"""
|
|
24
24
|
An HDU with data and a header that includes variations on the special keys that make headers
|
|
25
|
-
different from
|
|
25
|
+
different from dicts.
|
|
26
|
+
|
|
27
|
+
The base complete_common_header already has history and comment cards so this fixture adds extras.
|
|
26
28
|
"""
|
|
27
29
|
add_special = request.param
|
|
28
30
|
hdu = hdu_with_complete_common_header
|
|
29
31
|
if add_special == "history":
|
|
30
32
|
hdu.header.add_history("test history")
|
|
31
|
-
return hdu
|
|
33
|
+
return hdu, request.param
|
|
32
34
|
if add_special == "comment":
|
|
33
|
-
hdu.header.
|
|
34
|
-
return hdu
|
|
35
|
+
hdu.header.add_comment("test comment")
|
|
36
|
+
return hdu, request.param
|
|
35
37
|
if add_special == "continue":
|
|
36
38
|
hdu.header["LONG_VAL"] = " " * 100
|
|
37
|
-
return hdu
|
|
39
|
+
return hdu, request.param
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
@pytest.fixture()
|
|
@@ -282,11 +284,16 @@ def test_header_dict(hdu_with_special_keys):
|
|
|
282
284
|
"""
|
|
283
285
|
Given: A FitsAccess object with data and a header including special header keys
|
|
284
286
|
When: Accessing the header_dict method
|
|
285
|
-
Then: The object's header is successfully exported as a dict of the same length as the header
|
|
287
|
+
Then: The object's header is successfully exported as a dict of the same length as the header when accounting for multiple HISTORY or COMMENT cards
|
|
286
288
|
"""
|
|
287
|
-
|
|
289
|
+
hdu, added_header_key = hdu_with_special_keys
|
|
290
|
+
fits_obj = FitsAccessBase(hdu)
|
|
288
291
|
assert isinstance(fits_obj.header_dict, dict)
|
|
289
|
-
|
|
292
|
+
if added_header_key == "continue":
|
|
293
|
+
assert len(fits_obj.header_dict) == len(fits_obj.header)
|
|
294
|
+
if added_header_key in ["history", "comment"]:
|
|
295
|
+
# HISTORY and COMMENT keys get "squeezed"
|
|
296
|
+
assert len(fits_obj.header_dict) == len(fits_obj.header) - 1
|
|
290
297
|
|
|
291
298
|
|
|
292
299
|
@pytest.mark.parametrize(
|
{dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/RECORD
RENAMED
|
@@ -76,7 +76,7 @@ dkist_processing_common/tests/test_base.py,sha256=4ST3__jEHitEQaQs9-0OcqtyEJfIjZ
|
|
|
76
76
|
dkist_processing_common/tests/test_codecs.py,sha256=9Ln8FJs319rbHpCukO9lKLk3aDrdyDREjA4nCHsxDCA,20796
|
|
77
77
|
dkist_processing_common/tests/test_constants.py,sha256=Kc9k5TdYy5QkRRlGav6kfI2dy5HHKqtpf9qOuaAfDZU,5903
|
|
78
78
|
dkist_processing_common/tests/test_cs_step.py,sha256=RA0QD3D8eaL3YSOL_gIJ9wkngy14RQ2jbD-05KAziW4,2408
|
|
79
|
-
dkist_processing_common/tests/test_fits_access.py,sha256=
|
|
79
|
+
dkist_processing_common/tests/test_fits_access.py,sha256=tyUPNbUqoTPhQgzua_doWP9l9ee4ir_LLV-I9rHktcs,11393
|
|
80
80
|
dkist_processing_common/tests/test_flower_pot.py,sha256=X9_UI3maa3ZQncV3jYHgovWnawDsdEkEB5vw6EAB96o,3151
|
|
81
81
|
dkist_processing_common/tests/test_input_dataset.py,sha256=AI5uqaDea4kOwpwAU5qQdzUbxMpBwD20YCAvB7nzD5o,18766
|
|
82
82
|
dkist_processing_common/tests/test_interservice_bus.py,sha256=M_iv2CLmx5TnCB1VUN4YjkQ2LEUjfCKk7-ZlkV62XEQ,3000
|
|
@@ -109,7 +109,7 @@ docs/landing_page.rst,sha256=aPAuXFhBx73lEZ59B6E6JXxkK0LlxzD0n-HXqHrfumQ,746
|
|
|
109
109
|
docs/make.bat,sha256=mBAhtURwhQ7yc95pqwJzlhqBSvRknr1aqZ5s8NKvdKs,4513
|
|
110
110
|
docs/requirements.txt,sha256=Kbl_X4c7RQZw035YTeNB63We6I7pvXFU4T0Uflp2yDY,29
|
|
111
111
|
licenses/LICENSE.rst,sha256=piZaQplkzOMmH1NXg6QIdo9wwo9pPCoHkvm2-DmH76E,1462
|
|
112
|
-
dkist_processing_common-10.7.
|
|
113
|
-
dkist_processing_common-10.7.
|
|
114
|
-
dkist_processing_common-10.7.
|
|
115
|
-
dkist_processing_common-10.7.
|
|
112
|
+
dkist_processing_common-10.7.1.dist-info/METADATA,sha256=7xA4uAWQZv0vUY7XMOiH-3g_G76q2YluFmK4967BK8s,7154
|
|
113
|
+
dkist_processing_common-10.7.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
114
|
+
dkist_processing_common-10.7.1.dist-info/top_level.txt,sha256=LJhd1W-Vn90K8HnQDIE4r52YDpUjjMWDnllAWHBByW0,48
|
|
115
|
+
dkist_processing_common-10.7.1.dist-info/RECORD,,
|
|
File without changes
|
{dkist_processing_common-10.7.0.dist-info → dkist_processing_common-10.7.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|