Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-34192: import SFDQuery only in Ebv functor #737

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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