From 287780cc2c31ac67aecec278554703b5ab588804 Mon Sep 17 00:00:00 2001 From: Beale John Henry Date: Thu, 16 Jan 2025 11:54:14 +0100 Subject: [PATCH] updated bool in argparse --- reduction_tools/crystfel_split.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reduction_tools/crystfel_split.py b/reduction_tools/crystfel_split.py index d0407e6..d2b5f37 100644 --- a/reduction_tools/crystfel_split.py +++ b/reduction_tools/crystfel_split.py @@ -13,7 +13,7 @@ python crystfel_split.py -l -g -c -n - -e name of endstation + -p photons or # crystfel parameter may need some editing in the function - write_crystfel_run @@ -24,11 +24,11 @@ a log file with .geom and evalation of indexing, cell etc """ # modules +import argparse import pandas as pd import subprocess import os, errno import time -import argparse from tqdm import tqdm import regex as re import numpy as np @@ -229,7 +229,7 @@ def wait_for_jobs( job_ids, total_jobs ): job_ids.difference_update(completed_jobs) time.sleep(2) -def run_splits( list_df, cwd, name, lst, chunk_size, geom_file, cell_file, threshold, reservation ): +def run_splits( list_df, cwd, name, geom_file, cell_file, threshold, reservation ): # set chunk counter chunk = 0 @@ -281,7 +281,7 @@ def main( cwd, name, lst, chunk_size, geom_file, cell_file, threshold, reservati # run crystfel runs on individual splits print( "submitting jobs to cluster" ) - submitted_job_ids, chunk, stream_lst = run_splits( list_df, cwd, name, lst, chunk_size, geom_file, cell_file, threshold, reservation ) + submitted_job_ids, chunk, stream_lst = run_splits( list_df, cwd, name, geom_file, cell_file, threshold, reservation ) # monitor progress of jobs time.sleep( 30 )