From 553c22009fbee1e3e5cba91bef3acc678e703d88 Mon Sep 17 00:00:00 2001 From: Matthew Bourque Date: Wed, 14 Aug 2024 15:56:39 -0600 Subject: [PATCH] Fixed bug in epoch attrs name --- imap_processing/codice/codice_l1a.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imap_processing/codice/codice_l1a.py b/imap_processing/codice/codice_l1a.py index 5fc6e2811..8c652cdee 100644 --- a/imap_processing/codice/codice_l1a.py +++ b/imap_processing/codice/codice_l1a.py @@ -89,7 +89,7 @@ def configure_data_products(self, apid: int) -> None: apid : int The APID of interest. """ - config = constants.DATA_PRODUCT_CONFIGURATIONS.get(apid) # type: ignore[call-overload] + config = constants.DATA_PRODUCT_CONFIGURATIONS.get(apid) self.num_counters = config["num_counters"] self.num_energy_steps = config["num_energy_steps"] self.variable_names = config["variable_names"] @@ -323,7 +323,7 @@ def create_event_dataset( met_to_j2000ns(met), # TODO: Fix after SIT-3 (see note below) name="epoch", dims=["epoch"], - attrs=cdf_attrs.get_variable_attributes("epoch_attrs"), + attrs=cdf_attrs.get_variable_attributes("epoch"), ) # Create the dataset to hold the data variables @@ -376,7 +376,7 @@ def create_hskp_dataset( ), name="epoch", dims=["epoch"], - attrs=cdf_attrs.get_variable_attributes("epoch_attrs"), + attrs=cdf_attrs.get_variable_attributes("epoch"), ) dataset = xr.Dataset(