Skip to content

Commit

Permalink
Remove gen2 butler parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 2, 2023
1 parent 3a9dee6 commit 7ddd993
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions python/lsst/drp/tasks/forcedPhotCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import warnings

import lsst.pex.config
import lsst.afw.table

Expand Down Expand Up @@ -171,8 +169,6 @@ class ForcedPhotCoaddTask(pipeBase.PipelineTask):
Parameters
----------
butler : `None`
Deprecated and unused. Should always be `None`.
refSchema : `lsst.afw.table.Schema`, optional
The schema of the reference catalog, passed to the constructor of the
references subtask. Optional, but must be specified if ``initInputs``
Expand All @@ -188,14 +184,9 @@ class ForcedPhotCoaddTask(pipeBase.PipelineTask):
_DefaultName = "forcedPhotCoadd"
dataPrefix = "deepCoadd_"

def __init__(self, butler=None, refSchema=None, initInputs=None, **kwds):
def __init__(self, refSchema=None, initInputs=None, **kwds):
super().__init__(**kwds)

if butler is not None:
warnings.warn("The 'butler' parameter is no longer used and can be safely removed.",
category=FutureWarning, stacklevel=2)
butler = None

if initInputs is not None:
refSchema = initInputs['inputSchema'].schema

Expand Down

0 comments on commit 7ddd993

Please sign in to comment.