Location¶
- class lsst.daf.butler.Location(datastoreRootUri: None | str | ParseResult | ResourcePath | Path, path: str | ParseResult | ResourcePath | Path, *, trusted_path: bool = False)¶
- Bases: - object- Identifies a location within the - Datastore.- Parameters:
- datastoreRootUrilsst.resources.ResourcePathExpressionorNone
- Base URI for this datastore, must include an absolute path. If - Nonethe- pathmust correspond to an absolute URI.
- pathlsst.resources.ResourcePathExpression
- Relative path within datastore. Assumed to be using the local path separator if a - filescheme is being used for the URI, else a POSIX separator. Can be a full URI if the root URI is- None. Can also be a schemeless URI if it refers to a relative path.
- trusted_pathbool, optional
- If - True, the path is not checked to see if it is really inside the datastore.
 
- datastoreRootUri
 - Attributes Summary - Return the URI network location. - Return path corresponding to location. - Return path corresponding to location relative to - Datastoreroot.- Return the path component relative to the network location. - Return URI corresponding to fully-specified datastore location. - Methods Summary - clone()- Return a copy of this location as a new instance. - Return the file extension(s) associated with this location. - updateExtension(ext)- Update the file extension associated with this - Location.- Attributes Documentation - netloc¶
- Return the URI network location. 
 - path¶
- Return path corresponding to location. - This path includes the root of the - Datastore, but does not include non-path components of the root URI. Paths will not include URI quoting. If a file URI scheme is being used the path will be returned with the local OS path separator.
 - pathInStore¶
- Return path corresponding to location relative to - Datastoreroot.- Uses the same path separator as supplied to the object constructor. Can be an absolute URI if that is how the location was configured. 
 - relativeToPathRoot¶
- Return the path component relative to the network location. - Effectively, this is the path property with POSIX separator stripped from the left hand side of the path. Will be unquoted. 
 - uri¶
- Return URI corresponding to fully-specified datastore location. 
 - Methods Documentation - clone() Self¶
- Return a copy of this location as a new instance. - Returns:
- locationLocation
- An identical location as a new instance. 
 
- location