changed all __main__ scripts to console_main() functions to be used as entry points
This commit is contained in:
parent
f487691e03
commit
00124bbdcc
8 changed files with 45 additions and 18 deletions
|
@ -462,9 +462,7 @@ def scola_submit(directory,
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def console_main():
|
||||
parser = argparse.ArgumentParser(description="Submit slurm jobs for sCOLA tiles.")
|
||||
|
||||
parser.add_argument("-d", "--directory", type=str, default="./", help="Main directory where the output will be saved (if other dir and filenames are not specified).")
|
||||
|
@ -496,4 +494,9 @@ if __name__ == "__main__":
|
|||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
console_main()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue