Location

class lsst.daf.butler.Location(datastoreRoot, uri)

Bases: object

Identifies a location in the Datastore.

Attributes Summary

path Path corresponding to location.
pathInStore Path corresponding to location relative to Datastore root.
uri URI corresponding to location.

Methods Summary

updateExtension(ext) Update the file extension associated with this Location.

Attributes Documentation

path

Path corresponding to location.

This path includes the root of the Datastore.

pathInStore

Path corresponding to location relative to Datastore root.

uri

URI corresponding to location.

Methods Documentation

updateExtension(ext)

Update the file extension associated with this Location.

Parameters:
ext : str

New extension. If an empty string is given any extension will be removed. If None is given there will be no change.