Skip to content

Commit

Permalink
Merge pull request #850 from lsst/tickets/DM-39605
Browse files Browse the repository at this point in the history
DM-39605: Use butler.dimensions rather than butler.registry.dimensions
  • Loading branch information
timj committed Jun 13, 2023
2 parents 8597216 + dc06cb3 commit d363fbe
Show file tree
Hide file tree
Showing 160 changed files with 1,668 additions and 1,833 deletions.
4 changes: 4 additions & 0 deletions doc/changes/DM-39605.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Replace usage of ``Butler.registry.dimensions`` with ``Butler.dimensions``.
* Modernize type annotations.
* Fix some documentation problems.
* Minor modernizations to use set notation and f-strings.
1 change: 0 additions & 1 deletion doc/lsst.daf.butler/organizing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ We call a `DatasetRef` whose `~DatasetRef.id` attribute is not `None` a *resolve

In most data repositories, dataset IDs are 128-bit UUIDs that are guaranteed to be unique across all data repositories, not just within one; if two datasets share the same UUID in different data repositories, they must be identical (this is possible because of the extraordinarily low probability of a collision between two random 128-bit numbers, and our reservation of deterministic UUIDs for very special datasets).
As a result, we also frequently refer to the dataset ID as the UUID, especially in contexts where UUIDs are actually needed or can be safely assumed.
But 64-bit autoincrement integers are also supported (albeit mostly for legacy reasons), and we continue to use "dataset ID" in most code and documentation to refer to either form.

Most of the time, however, users identify a dataset using a combination of three other attributes:

Expand Down
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

# Import the registry subpackage directly for other symbols.
from .registry import CollectionSearch, CollectionType, Registry, RegistryConfig
from .transfers import YamlRepoExportBackend, YamlRepoImportBackend
from .transfers import RepoExportContext, YamlRepoExportBackend, YamlRepoImportBackend
from .version import *

0 comments on commit d363fbe

Please sign in to comment.