Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsteve committed Nov 7, 2024
1 parent 3c8e029 commit c449647
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions padre_meddea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
_data_directory = _package_directory / "data"
_test_files_directory = _package_directory / "data" / "test"

MISSION_NAME = "PADRE"
INSTRUMENT_NAME = "MeDDEA"

# the ratio of detector area for large pixels versus small pixels
RATIO_TOTAL_LARGE_TO_SMALL_PIX = 0.947

Expand Down
8 changes: 2 additions & 6 deletions padre_meddea/tests/test_amptek.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ def test_read_mca_rate():
assert spec.flux.unit == u.ct / u.s


@pytest.mark.parametrize(
"keyword", ["filename", "livetime", "rate", "dtimfrac"]
)
@pytest.mark.parametrize("keyword", ["filename", "livetime", "rate", "dtimfrac"])
def test_read_mca_meta_added(keyword):
"""Test that a few added meta data items."""
assert keyword in spec.meta


@pytest.mark.parametrize(
"keyword", ["LIVETIME", "SERIALNU", "REALTIME", "STARTTIM"]
)
@pytest.mark.parametrize("keyword", ["LIVETIME", "SERIALNU", "REALTIME", "STARTTIM"])
def test_read_mca_meta_orig(keyword):
"""Test that a few original meta data items are present."""
assert keyword in spec.meta["header"]
Expand Down
4 changes: 2 additions & 2 deletions padre_meddea/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ def str_to_fits_keyword(keyword: str) -> str:
"""Given a keyword string, return a fits compatible keyword string
which must not include special characters and have fewer have no more
than 8 characters."""
clean_keyword = ''.join(e for e in keyword if e.isalnum()).strip().upper()
return clean_keyword[0:8]
clean_keyword = "".join(e for e in keyword if e.isalnum()).strip().upper()
return clean_keyword[0:8]

0 comments on commit c449647

Please sign in to comment.