LocationFactory

class lsst.daf.butler.LocationFactory(datastoreRoot)

Bases: object

Factory for Location instances.

Methods Summary

fromPath(path) Factory function to create a Location from a POSIX path.
fromUri(uri) Factory function to create a Location from a URI.

Methods Documentation

fromPath(path)

Factory function to create a Location from a POSIX path.

Parameters:
path : str

A standard POSIX path, relative to the Datastore root.

Returns
location : Location

The equivalent Location.

fromUri(uri)

Factory function to create a Location from a URI.

Parameters:
uri : str

A valid Universal Resource Identifier.

Returns
location : Location

The equivalent Location.