Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts to generate the mask files
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import click | ||
|
||
from ...slurm.submit_job import submit_job | ||
from ..structure_inversion.make_gaussian_mask import make_gaussian_mask | ||
|
||
|
||
@click.command() | ||
@click.option('--base_dir', required=True, type=str, help="the simulation directory") | ||
@click.option('--sem_bin_dir', required=True, type=str, help="the sem program directory") | ||
@click.option('--output_dir', required=True, type=str, help="the output directory") | ||
@click.option('--nproc', required=True, type=int, help="nproc in the database directory") | ||
@click.option('--n_node', required=True, type=int, help="number of nodes to use") | ||
@click.option('--n_cores', required=True, type=int, help="number of cores to use") | ||
@click.option('--partition', required=True, type=str, help="the partition to use, eg: skx-normal") | ||
@click.option('--used_time', required=True, type=str, help="the running time") | ||
@click.option('--account', required=True, type=str, help="the account to use") | ||
def main(base_dir, sem_bin_dir, output_dir, nproc, n_node, n_cores, partition, used_time, account): | ||
thecommand = make_gaussian_mask(base_dir, sem_bin_dir, output_dir, nproc) | ||
submit_job("generate mask", thecommand, | ||
n_node, n_cores, partition, used_time, account, "stampede2") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() # pylint: disable=no-value-for-parameter |