Skip to content

Commit

Permalink
Add kestrel as an exec option
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Nov 15, 2023
1 parent 8ad8c9d commit 96c3ad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions reV/config/base_analysis_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def execution_control(self):
ec_config_types = {'local': BaseExecutionConfig,
'slurm': SlurmConfig,
'eagle': SlurmConfig,
'kestrel': SlurmConfig,
}
if 'option' in ec:
try:
Expand Down
6 changes: 3 additions & 3 deletions reV/config/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ class SlurmConfig(HPCConfig):

def _preflight(self):
"""Run a preflight check on the config."""
if self.option == 'eagle':
if self.option in {'eagle', 'kestrel', 'slurm'}:
if self.allocation is None:
msg = 'Eagle execution config must have an "allocation" input'
msg = 'HPC execution config must have an "allocation" input'
logger.error(msg)
raise ConfigError(msg)
if self.walltime is None:
msg = 'Eagle execution config must have an "walltime" input'
msg = 'HPC execution config must have a "walltime" input'
logger.error(msg)
raise ConfigError(msg)

Expand Down

0 comments on commit 96c3ad5

Please sign in to comment.