Skip to content

Commit

Permalink
import SFDQuery only in Ebv functor
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Dec 11, 2022
1 parent 2f5c2ff commit f281cf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/pipe/tasks/functors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import pandas as pd
import numpy as np
import astropy.units as u
from dustmaps.sfd import SFDQuery
from astropy.coordinates import SkyCoord

from lsst.utils import doImport
Expand Down Expand Up @@ -1933,6 +1932,8 @@ class Ebv(Functor):
shortname = "ebv"

def __init__(self, **kwargs):
# import is only needed for Ebv
from dustmaps.sfd import SFDQuery # noqa F401
self._columns = ['coord_ra', 'coord_dec']
self.sfd = SFDQuery()
super().__init__(**kwargs)
Expand Down

0 comments on commit f281cf3

Please sign in to comment.