Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
cylammarco committed Sep 30, 2022
1 parent 25c69d9 commit 84717a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/aspired/flux_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,13 @@ def load_standard(self, target, library=None, ftype="flux", cutoff=0.4):
# If there is a close match from the user-provided library, use
# that first, it will only accept the library and target if the
# similarity is above 0.5
if library is not None:
self.library = library
if self.library is not None:

(
_target,
_library,
) = self.lookup_closet_match_in_library(self.target, library)
) = self.lookup_closet_match_in_library(self.target, self.library)

if _target is not None:

Expand Down Expand Up @@ -489,7 +490,7 @@ def load_standard(self, target, library=None, ftype="flux", cutoff=0.4):

if not self.verbose:

if library is None:
if self.library is None:

# Use the default library order
self.logger.warning(
Expand Down

0 comments on commit 84717a2

Please sign in to comment.