Skip to content

Commit

Permalink
Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Oct 4, 2024
1 parent 5c9b530 commit 7605f66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mica/archive/aca_l0.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Ska.File
import ska_dbi
import tables
from astropy.table import MaskedColumn, Table, vstack
from astropy.table import Table, vstack
from Chandra.Time import DateTime
from chandra_aca.aca_image import ACAImage
from cxotime import CxoTimeLike
Expand Down Expand Up @@ -168,7 +168,9 @@ def get_options():
return opt


def _extract_bits_as_uint8(arr: np.ndarray, bit_start: int, bit_stop:int) -> np.ndarray:
def _extract_bits_as_uint8(
arr: np.ndarray, bit_start: int, bit_stop: int
) -> np.ndarray:
"""Extract UINT8's from a 2-D array of uint8 bit values into a new array.
Input array is Nx8 where N is the number of rows and 8 is the number of bits.
Expand Down Expand Up @@ -222,7 +224,6 @@ def get_aca_images(
ok = slot_data_raw["QUALITY"] == 0
slot_data = Table(slot_data_raw[ok])


# Add slot number if there are any rows (if statement not needed after
# https://github.com/astropy/astropy/pull/17102).
# if len(slot_data) > 0:
Expand Down

0 comments on commit 7605f66

Please sign in to comment.