From 988fdb420ebad7bcb61092a1077d6fa8d8e73ff4 Mon Sep 17 00:00:00 2001 From: frederick Date: Fri, 2 Oct 2026 11:53:58 +0100 Subject: [PATCH 1/2] updating archive strategy for ptyrex workflow, so that artifacts are saved as jpeg instead of tgz --- e02/templates/ptyrex_basic.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e02/templates/ptyrex_basic.yaml b/e02/templates/ptyrex_basic.yaml index 9ca03ac..d0d63bb 100644 --- a/e02/templates/ptyrex_basic.yaml +++ b/e02/templates/ptyrex_basic.yaml @@ -130,14 +130,20 @@ spec: artifacts: - name: ptyrex-object-modulus path: /tmp/object_modulus.jpeg + archive: + none: {} - name: ptyrex-object-phase path: /tmp/object_phase.jpeg + archive: + none: {} - name: ptyrex-probe-modulus path: /tmp/probe_modulus.jpeg + archive: + none: {} - name: ptyrex-probe-phase path: /tmp/probe_phase.jpeg archive: - none: { } + none: {} script: image: gitlab.diamond.ac.uk:5050/scisoft/ptychography/dimtools/mib2x imagePullPolicy: Always From 351a32f8aeccf6c1fda81e0530b3ef8b4a872eb8 Mon Sep 17 00:00:00 2001 From: frederick Date: Fri, 2 Oct 2026 11:59:36 +0100 Subject: [PATCH 2/2] updating print statements --- e02/templates/ptyrex_basic.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e02/templates/ptyrex_basic.yaml b/e02/templates/ptyrex_basic.yaml index d0d63bb..77bce6a 100644 --- a/e02/templates/ptyrex_basic.yaml +++ b/e02/templates/ptyrex_basic.yaml @@ -163,7 +163,7 @@ spec: import numpy as np from PIL import Image print('###start of log###') - print('json path: %s' % ("{{`{{workflow.parameters.config_json}}`}}")) + print('Current json path: %s' % ("{{`{{workflow.parameters.config_json}}`}}")) print('###end of log###') #find the output path of the recon from loading the json used in the recon @@ -181,7 +181,7 @@ spec: hdf_list = glob.glob(search_string) hdf_list.sort() chosen_recon = hdf_list[-1] - print(f'saving this recon to jpeg: {chosen_recon}...') + print(f'converting this recon: {chosen_recon}\ninto jpegs...') #load obj and probe with h5py.File(chosen_recon,'r') as f: