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 14, 2022
1 parent c588d92 commit 450aed8
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
self._columns = ['coord_ra', 'coord_dec']
self.sfd = SFDQuery()
super().__init__(**kwargs)
Expand Down

0 comments on commit 450aed8

Please sign in to comment.