Skip to content

Commit

Permalink
Merge pull request #383 from vmartinez-cu/update_hit_dependencies
Browse files Browse the repository at this point in the history
Update HIT dependencies for L1B and L2
  • Loading branch information
vmartinez-cu authored Nov 5, 2024
2 parents 2b86159 + e454cf9 commit f86557f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions sds_data_manager/lambda_code/SDSCode/dependency_config.csv
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ hi, l1b, 45sensor-de, hi, l1c, 45sensor-pset, HARD, DOWNSTREAM
# <---- HIT Dependencies ---->

hit, l0, raw, hit, l1a, all, HARD, DOWNSTREAM

hit, l1a, sci, hit, l1b, sci, HARD, DOWNSTREAM
hit, l1a, hk, hit, l1b, hk, HARD, DOWNSTREAM
hit, l0, raw, hit, l1b, hk, HARD, DOWNSTREAM
hit, l1a, count-rates, hit, l1b, all, HARD, DOWNSTREAM
hit, l1b, standard-rates, hit, l2, standard-fluxes, HARD, DOWNSTREAM
hit, l1b, summed-rates, hit, l2, summed-fluxes, HARD, DOWNSTREAM
hit, l1b, sectored-rates, hit, l2, sectored-fluxes, HARD, DOWNSTREAM

# <---- IDEX Dependencies ---->

Expand Down
6 changes: 3 additions & 3 deletions tests/lambda_endpoints/test_batch_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _populate_file_catalog(session):
file_path="/path/to/file2",
instrument="hit",
data_level="l0",
descriptor="sci",
descriptor="raw",
start_date=datetime(2024, 1, 1),
version="v001",
extension="pkts",
Expand Down Expand Up @@ -154,14 +154,14 @@ def test_get_file(session):

def test_get_downstream_dependencies(session):
"Tests get_downstream_dependencies function."
filename = "imap_hit_l1a_sci_20240101_v001.cdf"
filename = "imap_hit_l1a_count-rates_20240101_v001.cdf"
file_params = ScienceFilePath.extract_filename_components(filename)

complete_dependents = get_downstream_dependencies(session, file_params)
expected_complete_dependent = {
"instrument": "hit",
"data_level": "l1b",
"descriptor": "sci",
"descriptor": "all",
"version": "v001",
"start_date": "20240101",
}
Expand Down

0 comments on commit f86557f

Please sign in to comment.