Skip to content
Snippets Groups Projects
Commit 1fd165d9 authored by Gröne, Tjark Leon Raphael's avatar Gröne, Tjark Leon Raphael
Browse files

Update file maxwell_integrate_to_h5.py

parent 5d0b47d9
No related branches found
No related tags found
No related merge requests found
......@@ -218,8 +218,8 @@ if __name__ == '__main__':
sys.argv[2] += '/'
if not sys.argv[3].endswith('.poni'):
raise ValueError("The poni file must have a .poni extension")
if not sys.argv[4].endswith('.mask') and sys.argv[4] != "None":
raise ValueError("The mask file must have a .mask extension or be 'None' if no mask is used")
if not sys.argv[4].endswith('.edf') and sys.argv[4] != "None":
raise ValueError("The mask file must have a .edf extension or be 'None' if no mask is used")
if not sys.argv[5].isdigit():
raise ValueError("NPROC must be a positive integer")
if not sys.argv[6].replace('.', '', 1).isdigit() or not (0 <= float(sys.argv[6]) <= 1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment