lisa.utils.ArtifactPath#
- class lisa.utils.ArtifactPath(root, relative, *args, **kwargs)[source]#
Bases:
str,Loggable,HideExekallIDPath to a folder that can be used to store artifacts of a function. This must be a clean folder, already created on disk.
Properties
loggerinheritedConvenience short-hand for
self.get_logger().Methods
Join two paths together, similarly to
os.path.join().get_logger()inheritedProvides a
logging.Loggernamed aftercls.log_locals()inheritedDebugging aid: log the local variables of the calling function.
Properties#
- property ArtifactPath.logger#
Inherited property, see
lisa.utils.Loggable.loggerConvenience short-hand for
self.get_logger().
Methods#
- classmethod ArtifactPath.join(path1, path2)[source]#
Join two paths together, similarly to
os.path.join().If
path1is aArtifactPath, the result will also be one, and the root ofpath1will be used as the root of the new path.
- classmethod ArtifactPath.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()Provides a
logging.Loggernamed aftercls.
- classmethod ArtifactPath.log_locals(var_names=None, level='debug')#
Inherited method, see
lisa.utils.Loggable.log_locals()Debugging aid: log the local variables of the calling function.