Skip to content

Commit 60251f7

Browse files
authored
MNT/FIX: Rename Lo background column to rate/sigma instead of type (#2639)
1 parent e954987 commit 60251f7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

imap_processing/lo/l1c/lo_l1c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,9 @@ def set_background_rates(
10781078
# for each energy step, set the background rate and uncertainty
10791079
for esa_step in range(0, 7):
10801080
value = row[f"E-Step{esa_step + 1}"]
1081-
if row["type"] == "rate":
1081+
if row["rate/sigma"] == "rate":
10821082
bg_rates[esa_step, bin_start:bin_end, :] = value
1083-
elif row["type"] == "sigma":
1083+
elif row["rate/sigma"] == "sigma":
10841084
bg_sys_err[esa_step, bin_start:bin_end, :] = value
10851085
else:
10861086
raise ValueError("Unknown background type in ancillary file.")

imap_processing/tests/lo/test_anc/imap_lo_hydrogen-background-small_20250101_20270101_v001.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
YYYYDDD,GoodTime_start,GoodTime_end,bin_start,bin_end,Lo,E-Step1,E-Step2,E-Step3,E-Step4,E-Step5,E-Step6,E-Step7,type
1+
YYYYDDD,GoodTime_start,GoodTime_end,bin_start,bin_end,Lo,E-Step1,E-Step2,E-Step3,E-Step4,E-Step5,E-Step6,E-Step7,rate/sigma
22
2025001,473389200.0,473472000.0,0,1,Lo,0.0098,0.0089,0.0118,0.0113,0.0056,0.0008,0.0000,rate
33
2025001,473389200.0,473472000.0,0,1,Lo,0.0025,0.0020,0.0015,0.0015,0.0010,0.0008,0.0000,sigma
44
2025001,473389200.0,473472000.0,1,2,Lo,0.0098,0.0089,0.0118,0.0113,0.0056,0.0008,0.0000,rate

imap_processing/tests/lo/test_anc/imap_lo_oxygen-background-small_20250101_20270101_v001.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
YYYYDDD,GoodTime_start,GoodTime_end,bin_start,bin_end,Lo,E-Step1,E-Step2,E-Step3,E-Step4,E-Step5,E-Step6,E-Step7,type
1+
YYYYDDD,GoodTime_start,GoodTime_end,bin_start,bin_end,Lo,E-Step1,E-Step2,E-Step3,E-Step4,E-Step5,E-Step6,E-Step7,rate/sigma
22
2025001,473389200.0,473472000.0,0,1,Lo,0.0098,0.0089,0.0118,0.0113,0.0056,0.0008,0.0000,rate
33
2025001,473389200.0,473472000.0,0,1,Lo,0.0025,0.0020,0.0015,0.0015,0.0010,0.0008,0.0000,sigma
44
2025001,473389200.0,473472000.0,1,2,Lo,0.0098,0.0089,0.0118,0.0113,0.0056,0.0008,0.0000,rate

0 commit comments

Comments
 (0)