Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import numpy as np
import pandas as pd
from imap_data_access import ImapFilePath, ScienceFilePath
from imap_processing.idex.idex_constants import IDEXAPID
from imap_processing.idex.idex_constants import IDEX_10_DAY_RANGES_PATH, IDEXAPID
Comment thread
lacoak21 marked this conversation as resolved.
from imap_processing.idex.idex_l0 import decom_packets
from imap_processing.idex.idex_l1a import Scitype
from imap_processing.spice.time import met_to_datetime64
Expand All @@ -51,11 +51,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

# TODO use file from imap_processing
IDEX_10_DAY_RANGES_PATH = (
Path(__file__).resolve().parent.parent / "utils" / "idex_10_day_CDF_names.csv"
)


def write_science_metadata_to_table(filename: str, s3_filepath: str) -> dict:
"""Parse an IDEX L0 science filename and insert metadata into ScienceFiles.
Expand Down Expand Up @@ -170,7 +165,7 @@ def compute_idex_l0_start_dates(s3_filepath: str) -> list:

# IDEX instrument team defined 10-day window boundaries. Each row is one window with
# a start and end date.
if not IDEX_10_DAY_RANGES_PATH.exists():
if not Path(IDEX_10_DAY_RANGES_PATH).exists():
raise FileNotFoundError(
f"Unable to find IDEX window definition CSV at {IDEX_10_DAY_RANGES_PATH}"
)
Comment thread
lacoak21 marked this conversation as resolved.
Expand Down
Loading