Skip to content

Commit

Permalink
extra dump before decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Savchenko authored and Volodymyr Savchenko committed Oct 16, 2024
1 parent 04bd4dd commit 040330d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_data_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
def test_rmf():
isgri_rmf_dp = NumpyDataProduct.from_fits_file("tests/test_data/isgri_rmf_Crab.fits")

Check warning on line 41 in tests/test_data_products.py

View check run for this annotation

Codecov / codecov/patch

tests/test_data_products.py#L41

Added line #L41 was not covered by tests

for ID, _d in enumerate(isgri_rmf_dp.data_unit):
print(ID, _d.header['EXTNAME'], _d.to_fits_hdu())

Check warning on line 44 in tests/test_data_products.py

View check run for this annotation

Codecov / codecov/patch

tests/test_data_products.py#L43-L44

Added lines #L43 - L44 were not covered by tests

encoded_numpy_data_prod = isgri_rmf_dp.encode()
decoded_numpy_data_prod = NumpyDataProduct.decode(encoded_numpy_data_prod)

Check warning on line 47 in tests/test_data_products.py

View check run for this annotation

Codecov / codecov/patch

tests/test_data_products.py#L46-L47

Added lines #L46 - L47 were not covered by tests

Expand Down

0 comments on commit 040330d

Please sign in to comment.