Skip to content
Snippets Groups Projects

Alter default node and core values for policy runs

1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -94,12 +94,12 @@ def validate_partition(partition):
@@ -94,12 +94,12 @@ def validate_partition(partition):
return partition
return partition
def validate_nodes(n):
def validate_nodes(n):
if not isinstance(n,int) and n >= 1 and n <= 4:
if not (n >= 1 and n <= 16):
raise ValueError('Nodes must be an integer between 1 and 4')
raise ValueError('Nodes must be an integer between 1 and 16')
def validate_cores(n):
def validate_cores(n):
if not isinstance(n,int) and n >= 1 and n <= 48:
if not (n >= 1 and n <= 16):
raise ValueError('Cores must be an integer between 1 and 48')
raise ValueError('Cores per node must be an integer between 1 and 16')
# Need to validate that the output directory exists. This will not create a directory that does not already exist.
# Need to validate that the output directory exists. This will not create a directory that does not already exist.
def validate_output_directory(outdir):
def validate_output_directory(outdir):
Loading