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-42340: Fix some deprecation warnings #875

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions python/lsst/pipe/tasks/fit_multiband.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
__all__ = ["CatalogExposure", "CatalogExposureConfig", ]

from functools import cached_property
from pydantic import Field
from pydantic import Field, ConfigDict
from pydantic.dataclasses import dataclass

import lsst.afw.image as afwImage
import lsst.afw.table as afwTable
import lsst.daf.butler as dafButler


class CatalogExposureConfig:
arbitrary_types_allowed = True
CatalogExposureConfig = ConfigDict(arbitrary_types_allowed=True)


@dataclass(frozen=True, kw_only=True, config=CatalogExposureConfig)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def setUp(self):
detector = 42

# Create a and populate a test butler for runQuantum tests.
self.repo_path = tempfile.TemporaryDirectory()
self.repo_path = tempfile.TemporaryDirectory(ignore_cleanup_errors=True)
self.repo = butlerTests.makeTestRepo(self.repo_path.name)

# dataIds for fake data
Expand Down Expand Up @@ -366,7 +366,7 @@ def setUp(self):
self.butler.put(afwTable.SimpleCatalog(), "ps1_pv3_3pi_20170110", self.htm_id)

def tearDown(self):
del self.repo_path # this removes the temporary directory
self.repo_path.cleanup()

def test_runQuantum(self):
task = CalibrateImageTask()
Expand Down