Skip to content

Commit

Permalink
add support for L1A files
Browse files Browse the repository at this point in the history
  • Loading branch information
drhlxiao committed Dec 7, 2023
1 parent e4a1fd3 commit 86e7d35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stixdcpy/science.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
FPGA_TAU = 10.04e-6
ASIC_TAU = 2.58e-6 # 20 ns uncertainty in FPGA
#updated on July 4, 2023, based on measurements with the ground unit by Olivier, Hualin, Stefan and Sam

TRIG_TAU = FPGA_TAU + ASIC_TAU
# STIX detector parameters

Expand Down Expand Up @@ -55,7 +54,12 @@ def url(self):

@property
def trigger_error(self):
return error_computation(self.hdul['data'].data['triggers_comp_err'],
try:
trig_err=self.hdul['data'].data['triggers_comp_err']
except KeyError:
trig_err=self.hdul['data'].data['triggers_err']

return error_computation(trig_err,
self.triggers)

@property
Expand Down

0 comments on commit 86e7d35

Please sign in to comment.