From 84a093aa2ae9bcee7f7a3b3eda196a74bd8ec252 Mon Sep 17 00:00:00 2001 From: Daralynn Rhode Date: Tue, 30 Jul 2024 12:11:23 -0600 Subject: [PATCH] glows update --- imap_processing/glows/l1b/glows_l1b_data.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imap_processing/glows/l1b/glows_l1b_data.py b/imap_processing/glows/l1b/glows_l1b_data.py index 8cb2850b6..938b290ab 100644 --- a/imap_processing/glows/l1b/glows_l1b_data.py +++ b/imap_processing/glows/l1b/glows_l1b_data.py @@ -5,6 +5,7 @@ import json from dataclasses import InitVar, dataclass, field from pathlib import Path +from typing import Optional import numpy as np @@ -250,11 +251,11 @@ class DirectEventL1B: # l1a_file_name: str # TODO: Add once L1A questions are answered # ancillary_data_files: np.ndarray # TODO: Add once L1A questions are answered # The following variables are created from the InitVar data - de_flags: np.ndarray = field(init=False, default=None) + de_flags: Optional[np.ndarray] = field(init=False, default=None) # TODO: First two values of DE are sec/subsec - direct_event_glows_times: np.ndarray = field(init=False, default=None) + direct_event_glows_times: Optional[np.ndarray] = field(init=False, default=None) # 3rd value is pulse length - direct_event_pulse_lengths: np.ndarray = field(init=False, default=None) + direct_event_pulse_lengths: Optional[np.ndarray] = field(init=False, default=None) # TODO: where does the multi-event flag go? def __post_init__(