Skip to content

Commit 679a141

Browse files
committed
Attach anode html to ispyb
1 parent fbe663f commit 679a141

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/dlstbx/wrapper/dimple.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ def send_results_to_ispyb(self):
153153
schemas.AttachmentFileType.RESULT,
154154
2,
155155
),
156+
self.results_directory / "anode.html": (
157+
schemas.AttachmentFileType.RESULT,
158+
2,
159+
),
156160
}
157161
attachments.extend(
158162
[
@@ -307,6 +311,14 @@ def run(self):
307311
)
308312
)
309313
if success:
314+
self.log.info("Creating anode html visualisation")
315+
try:
316+
os.system(
317+
f"module load molviewspec; gen_html_anode.py --results_directory {str(self.results_directory)} --peaks 10"
318+
)
319+
except Exception as e:
320+
self.log.info(f"Exception creating anode html visualisation: {e}")
321+
310322
self.log.info("Sending dimple results to ISPyB")
311323
success = self.send_results_to_ispyb()
312324

0 commit comments

Comments
 (0)