finalize_pipeline_windows.py 903 B

1234567891011121314151617181920
  1. from view.python_core.processing_pipelines import PipelineManager
  2. # this tells view all settings including the folder structure of your project
  3. # On Windows, if you copy paths from the file explorer, make sure the string below is always of the form r"......"
  4. ymlfile = r"E:\MR_Till\usage_till_windows.yml"
  5. # specify the pipeline definition file to use
  6. pipelines_definition_file = r"E:\MR_Till\progs\pipelines_settings\processing_pipelines.yml"
  7. # specify the animals whose data is to be processed; and their corresponding pipelines
  8. animals = {
  9. # "<animal name>": <pipeline name>,
  10. "MR_190510b_or47a": 'pipeline2',
  11. }
  12. for animal, pipeline2finalize in animals.items():
  13. pipeline_manager = PipelineManager(project_yml_file=ymlfile, animal=animal,
  14. pipelines_config_file=pipelines_definition_file)
  15. pipeline_manager.finalize_pipeline(pipeline2finalize)