def __init__(self, pipeline_configuration=None): self.name = 'mixed_commercial_residential' self.pipeline = p.Pipeline(self.name) self.artifact_root_dir = 'mix' self.run_dir = f'{time()}__{self.name}' if pipeline_configuration: # TODO: establish a configuration scheme for this to run dynamically pass else: self.create_tasks() self._verify_or_create_local_artifact_directory()
def __init__(self, pipeline_configuration=None, execution_id=None): self.name = 'rbsa' self.pipeline = p.Pipeline(self.name) # specify the logical directory structure for this pipeline execution self.artifact_root_dir = 'rbsa' self.artifact_raw_dir = 'raw' self.artifact_noaa_dir = 'noaa' self.artifact_tmy_base_dir = 'tmy_base' self.artifact_tmy_target_dir = 'tmy_target' self.artifact_target_weather_dir = 'target_weather' # the local directory where all the output images are saved for this pipeline run # change the run dir name: add user_id in the dir self.run_dir = f'{execution_id}__{time()}__{self.name}' if pipeline_configuration: # TODO: establish a configuration scheme for this to run dynamically pass else: self.create_tasks() self._verify_or_create_local_artifact_directory()