Skip to content

Commit

Permalink
Fixed bug in epoch attrs name
Browse files Browse the repository at this point in the history
  • Loading branch information
bourque committed Aug 14, 2024
1 parent 72b28dc commit 553c220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imap_processing/codice/codice_l1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 553c220

Please sign in to comment.