Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

project_paths.py 811 B

1234567891011121314151617181920212223242526
  1. from pathlib import Path
  2. class project_paths_class:
  3. """
  4. Define the custom paths in this project.
  5. """
  6. working_dir = Path.home() / 'Projects' / 'cobrawap_publication_code'
  7. def __init__(self):
  8. """
  9. Optionally set alternative paths for the execution on a compute cluster.
  10. """
  11. if self.iam_on_cluster():
  12. self.working_dir = Path('/users') / 'gutzen' / 'cobrawap_publication_code'
  13. self.pipeline_output = self.working_dir / 'cobrawap_output'
  14. self.figures = self.working_dir / 'figures'
  15. self.dataframes = self.pipeline_output / 'aggregated_output'
  16. def iam_on_cluster(self):
  17. if 'home' in str(Path.home()):
  18. return False
  19. else:
  20. return True
  21. project_paths = project_paths_class()