Skip to content

Commit

Permalink
another fix to the merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenLabrie committed Mar 30, 2023
1 parent b760d14 commit f0abb93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions geminidr/gnirs/primitives_gnirs_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
# ------------------------------------------------------------------------------
import os

import numpy as np
from scipy import ndimage

import astrodata, gemini_instruments
from geminidr.gemini.lookups import DQ_definitions as DQ
from gempy.gemini import gemini_tools as gt

from .primitives_gnirs import GNIRS
from ..core import Image, Photometry
from . import parameters_gnirs_image
from .lookups import maskdb

from recipe_system.utils.decorators import parameter_override, capture_provenance

Expand Down Expand Up @@ -70,8 +74,8 @@ def addIllumMaskToDQ(self, adinputs=None, **params):

# Fetching a corrected illumination mask with a keyhole that aligns
# with the science data
illum_mask = FOV._create_illum_mask(reference, log, xshift=params["xshift"],
yshift=params["yshift"])
illum_mask = _create_illum_mask(reference, log, xshift=params["xshift"],
yshift=params["yshift"])
if illum_mask is None:
log.warning(f"No illumination mask found for {reference.filename},"
" no mask can be added to the DQ planes of the inputs")
Expand Down

0 comments on commit f0abb93

Please sign in to comment.