Skip to content

Commit

Permalink
Fix problem in cargo-culted docs.
Browse files Browse the repository at this point in the history
"datasetRefOrType" is only the second argument for "put".
  • Loading branch information
TallJimbo committed Feb 6, 2019
1 parent 62421f0 commit 27b560c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/lsst/daf/butler/butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get(self, datasetRefOrType, dataId=None, parameters=None, **kwds):
dataId : `dict` or `DataId`
A `dict` of `Dimension` link name, value pairs that label the
`DatasetRef` within a Collection. When `None`, a `DatasetRef`
should be provided as the second argument.
should be provided as the first argument.
parameters : `dict`
Additional StorageClass-defined options to control reading,
typically used to efficiently read only a subset of the dataset.
Expand Down Expand Up @@ -422,7 +422,7 @@ def getUri(self, datasetRefOrType, dataId=None, predict=False, **kwds):
dataId : `dict` or `DataId`
A `dict` of `Dimension` link name, value pairs that label the
`DatasetRef` within a Collection. When `None`, a `DatasetRef`
should be provided as the second argument.
should be provided as the first argument.
predict : `bool`
If `True`, allow URIs to be returned of datasets that have not
been written.
Expand Down Expand Up @@ -470,7 +470,7 @@ def datasetExists(self, datasetRefOrType, dataId=None, **kwds):
dataId : `dict` or `DataId`
A `dict` of `Dimension` link name, value pairs that label the
`DatasetRef` within a Collection. When `None`, a `DatasetRef`
should be provided as the second argument.
should be provided as the first argument.
kwds
Additional keyword arguments used to augment or construct a
`DataId`. See `DataId` parameters.
Expand Down Expand Up @@ -506,7 +506,7 @@ def remove(self, datasetRefOrType, dataId=None, *, delete=True, remember=True, *
dataId : `dict` or `DataId`
A `dict` of `Dimension` link name, value pairs that label the
`DatasetRef` within a Collection. When `None`, a `DatasetRef`
should be provided as the second argument.
should be provided as the first argument.
delete : `bool`
If `True` (default) actually delete the dataset from the
Datastore (i.e. actually remove files).
Expand Down

0 comments on commit 27b560c

Please sign in to comment.