Skip to content

Commit

Permalink
have addDQ get the BPM from the calmgr not the LUT
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenLabrie committed Apr 23, 2024
1 parent 98f1130 commit 7bdd2c1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions geminidr/core/primitives_standardize.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,11 @@ def addDQ(self, adinputs=None, **params):
user_bpm_list = params['user_bpm']

if static_bpm_list == "default":
try:
static_bpm_list = self.caldb.get_processed_bpm(adinputs)
except:
static_bpm_list = None
if static_bpm_list is not None and not all([f is None for f in static_bpm_list.files]):
static_bpm_list = self.caldb.get_processed_bpm(adinputs)
if static_bpm_list is not None:
static_bpm_list = static_bpm_list.files
else:
# TODO once we fully migrate to caldb/server managed bpms, use 2nd line
# TODO also remove all() check in if above at that time
static_bpm_list = [self._get_bpm_filename(ad) for ad in adinputs]
#static_bpm_list = [None] * len(adinputs)
static_bpm_list = [None] * len(adinputs)

for ad, static, user in zip(*gt.make_lists(adinputs, static_bpm_list,
user_bpm_list, force_ad=True)):
Expand Down

0 comments on commit 7bdd2c1

Please sign in to comment.