Skip to content

Commit e905e84

Browse files
committed
another fix for modifying array
1 parent c1717d4 commit e905e84

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

imap_processing/lo/l1b/lo_l1b.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,9 @@ def l1b_bgrates_and_goodtimes(
25632563
bg_start_met = xr.DataArray([0.0])
25642564
bg_end_met = xr.DataArray([0.0])
25652565
epochs = l1b_histrates["epoch"].values.copy()
2566-
epochs = xr.DataArray(epochs, dims=["epoch"])
2566+
epochs = xr.DataArray(
2567+
epochs, dims=["epoch"], attrs=attr_mgr_l1b.get_variable_attributes("epoch")
2568+
)
25672569
goodtimes = xr.DataArray(np.zeros((max_row_count, 2), dtype=np.int64))
25682570
h_background_rate = xr.DataArray(np.zeros((1, NUM_ESA_STEPS), dtype=np.float32))
25692571
h_background_rate_variance = xr.DataArray(

0 commit comments

Comments
 (0)