Skip to content

Commit 7f8bb72

Browse files
committed
fix for i4Ds#437
1 parent 99a0b61 commit 7f8bb72

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

stixcore/processing/L0toL1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ def process_type(files, *, processor, soopmanager, spice_kernel_path, config):
9191
CONFIG = config
9292

9393
for file in files:
94-
l0 = Product(file)
95-
logger.info(f"processing file: {file}")
9694
try:
95+
logger.info(f"processing file: {file} for L0 to L1")
96+
l0 = Product(file)
9797
tmp = Product._check_registered_widget(
9898
level="L1",
9999
service_type=l0.service_type,

stixcore/products/level0/scienceL0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ def from_levelb(cls, levelb, parent=""):
968968
data.add_basic(name="cha_diode1", nix="NIX00091", packets=packets, dtype=np.uint16)
969969
data.add_basic(name="chb_diode0", nix="NIX00092", packets=packets, dtype=np.uint16)
970970
data.add_basic(name="chb_diode1", nix="NIX00093", packets=packets, dtype=np.uint16)
971-
data["control_index"] = np.hstack([np.full(ns, i) for i, ns in enumerate(samples)])
971+
data["control_index"] = np.hstack([np.full(ns, i) for i, ns in enumerate(samples)]).astype(np.uint16)
972972
except ValueError as e:
973973
logger.warning(e)
974974
raise e

stixcore/products/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def read_qtable(file, hdu, hdul=None):
7171
`astropy.table.QTable`
7272
The corrected QTable with correct data types
7373
"""
74-
qtable = QTable.read(file, hdu, astropy_native=True)
74+
qtable = QTable.read(file, hdu)
7575
if hdul is None:
7676
hdul = fits.open(file)
7777

0 commit comments

Comments
 (0)