Skip to content

Commit

Permalink
more pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleySappington committed Nov 8, 2023
1 parent cac9cd2 commit ea4ae52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions jwql/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,13 +999,13 @@ class QueryConfigKeys:

# Concatenate all suffix types (ordered to ensure successful matching)
FILE_SUFFIX_TYPES = (
GUIDER_SUFFIX_TYPES
+ GENERIC_SUFFIX_TYPES
+ TIME_SERIES_SUFFIX_TYPES
+ NIRCAM_CORONAGRAPHY_SUFFIX_TYPES
+ NIRISS_AMI_SUFFIX_TYPES
+ WFSC_SUFFIX_TYPES
+ MSA_SUFFIX
GUIDER_SUFFIX_TYPES +
GENERIC_SUFFIX_TYPES +
TIME_SERIES_SUFFIX_TYPES +
NIRCAM_CORONAGRAPHY_SUFFIX_TYPES +
NIRISS_AMI_SUFFIX_TYPES +
WFSC_SUFFIX_TYPES +
MSA_SUFFIX
)

# Instrument Documentation Links
Expand Down
8 changes: 4 additions & 4 deletions jwql/website/apps/jwql/data_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ def get_available_suffixes(all_suffixes, return_untracked=True):
untracked_suffixes = set(all_suffixes)
for poss_suffix in EXPOSURE_PAGE_SUFFIX_ORDER:
if 'crf' not in poss_suffix:
if (poss_suffix in all_suffixes and
poss_suffix not in suffixes):
suffixes.append(poss_suffix)
untracked_suffixes.remove(poss_suffix)
if (poss_suffix in all_suffixes
and poss_suffix not in suffixes):
suffixes.append(poss_suffix)
untracked_suffixes.remove(poss_suffix)
else:
# EXPOSURE_PAGE_SUFFIX_ORDER contains crf and crfints,
# but the actual suffixes in the data will be e.g. o001_crf,
Expand Down

0 comments on commit ea4ae52

Please sign in to comment.