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
|
@ -149,8 +149,7 @@ def plot_imshow_diff(data_list,
|
|||
return fig, axes
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def console_main():
|
||||
from argparse import ArgumentParser
|
||||
parser = ArgumentParser(description='Comparisons of fields slices.')
|
||||
|
||||
|
@ -223,3 +222,8 @@ if __name__ == "__main__":
|
|||
fig.savefig(args.output,bbox_inches='tight')
|
||||
else:
|
||||
fig.savefig(args.directory+'slices.jpg',bbox_inches='tight')
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
console_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue