Skip to content

Commit 66e5f24

Browse files
committed
Replace IRIS tmp directory with DLS processed directory
1 parent 6e0180b commit 66e5f24

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/dlstbx/wrapper/fast_ep.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,15 @@ def run_report(self, working_directory, params):
314314
working_directory / params["fast_ep"]["xml"]
315315
).read_text()
316316
self.log.info("Sending fast_ep phasing results to ISPyB")
317-
xml_file.write_text(
318-
xml_data.replace(str(working_directory), str(results_directory))
319-
)
317+
# Replace tmp run location at DLS and IRIS to processed directory
318+
for replace_path in (
319+
str(working_directory),
320+
f"/tmp/{self.recwrap.environment['ID']}",
321+
):
322+
xml_data = xml_data.replace(
323+
replace_path, str(results_directory)
324+
)
325+
xml_file.write_text(xml_data)
320326
result_ispyb = self.send_results_to_ispyb(xml_file)
321327
if not result_ispyb:
322328
self.log.error(

0 commit comments

Comments
 (0)