The Project component is the most important component within LASIF as it is the component which defines the project and sets up all the other components.
Project components class.
It is important to not import necessary things at the method level to make importing this file as fast as possible. Otherwise using the command line interface feels sluggish and slow. Import things only the functions they are needed.
GNU General Public License, Version 3 (http://www.gnu.org/copyleft/gpl.html)
Project(project_root_path: pathlib.Path, init_project: bool = False)¶
A class managing LASIF projects.
It represents the heart of LASIF.
Returns the name of a log file. It will create all necessary directories along the way but not the log file itsself.
log_type – The type of logging. Will result in a subfolder. Examples for this are
description – Short description of what is being downloaded. Will be used to derive the name of the logfile.
get_output_folder(type, tag, timestamp=True)¶
Generates a output folder in a unified way.
type – The type of data. Will be a subfolder.
tag – The tag of the folder. Will be postfix of the final folder.
timestamp – Add timestamp to folder name to ensure uniqueness. Defaults to True