Skip to content

Commit b432cc5

Browse files
committed
Sync with DIALS changes to fix tests
1 parent d024908 commit b432cc5

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

xfel/command_line/xtc_process.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,21 +490,24 @@ def __init__(self):
490490
self.tt_high = None
491491
self.db_app = None
492492

493+
self.idxr = None
494+
self.debug_file_handle = None
495+
493496
def debug_start(self, ts):
494497
self.debug_str = "%s,%s"%(socket.gethostname(), ts)
495498
self.debug_str += ",%s,%s,%s\n"
496499
self.debug_write("start")
497500

498501
def debug_write(self, string, state = None):
499502
ts = cspad_tbx.evt_timestamp() # Now
500-
debug_file_handle = open(self.debug_file_path, 'a')
503+
if not self.debug_file_handle:
504+
self.debug_file_handle = open(self.debug_file_path, 'a')
501505
if string == "":
502-
debug_file_handle.write("\n")
506+
self.debug_file_handle.write("\n")
503507
else:
504508
if state is None:
505509
state = " "
506-
debug_file_handle.write(self.debug_str%(ts, state, string))
507-
debug_file_handle.close()
510+
self.debug_file_handle.write(self.debug_str%(ts, state, string))
508511

509512
def mpi_log_write(self, string):
510513
print(string)
@@ -590,6 +593,10 @@ def run(self):
590593
+'Set integration.debug.output=True and integration.debug.separate_files=False to save shoeboxes.')
591594

592595
self.params = params
596+
597+
if params.indexing.basis_vector_combinations.max_refine is libtbx.Auto:
598+
params.indexing.basis_vector_combinations.max_refine = 5
599+
593600
self.load_reference_geometry()
594601

595602
if params.output.composite_output:

0 commit comments

Comments
 (0)