Skip to content

Commit

Permalink
Document how to obtain support for HTCondor clusters (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin1887 committed Aug 23, 2023
1 parent 99717b8 commit 926eea4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/lab.experiment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ Custom command line arguments
--------------------

.. autoclass:: lab.environments.Environment

Lab supports the following built-in environments. Additionally, support for
HTCondor clusters is provided by a third-party repository:
https://github.com/Martin1887/lab-htcondor-environment. Please read the
README file of this repository for installation and usage instructions.

.. autoclass:: lab.environments.LocalEnvironment
.. autoclass:: lab.environments.SlurmEnvironment
.. autoclass:: lab.environments.BaselSlurmEnvironment
Expand Down
6 changes: 4 additions & 2 deletions lab/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,15 @@ def build(self, write_to_disk=True):
logging.info(f'Experiment path: "{tools.get_relative_path(self.path)}"')
self._remove_experiment_dir()
tools.makedirs(self.path)
self.environment.write_main_script()

self._build_new_files()
self._build_resources()
self._build_runs()
self._build_properties_file(STATIC_EXPERIMENT_PROPERTIES_FILENAME)

# The main script can need other experiment files and it adds new files
self.environment.write_main_script()
self._build_new_files()

def start_runs(self):
"""Execute all runs that were added to the experiment.
Expand Down

0 comments on commit 926eea4

Please sign in to comment.