Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lsst/daf_butler
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f124fbc20a9cf46b8f8da0214ac73467d3044cce
Choose a base ref
..
head repository: lsst/daf_butler
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7b59d295f38a1600ffed5decd00758f0cef02bb5
Choose a head ref
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/test_server.py
8 changes: 8 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
@@ -111,6 +111,14 @@ def test_find_dataset(self):
self.assertEqual(ref.id, uuid.UUID("e15ab039-bc8b-4135-87c5-90902a7c0b22"))

# Try again with variation of parameters.
ref_new = self.butler.find_dataset(
"bias",
{"detector": 1},
collections="imported_g",
instrument="Cam1",
)
self.assertEqual(ref_new, ref)

ref_new = self.butler.find_dataset(
ref.datasetType,
DataCoordinate.standardize(detector=1, instrument="Cam1", universe=self.butler.dimensions),