Skip to content

Commit 43a43fe

Browse files
committed
fixed postprocessing for multiple reconstructions
1 parent 833ffa4 commit 43a43fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/cohere_ui/beamline_postprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def process_dir(config_maps, res_dir_scan):
202202
del res_viz_r
203203

204204
if viz_params.get('write_recip', False):
205+
while not res_dir.endswith('results_phasing'):
206+
res_dir = os.path.split(res_dir)[0]
205207
dfile = ut.join(*(os.path.split(res_dir)[0], "phasing_data", "data.tif"))
206208
d = ut.read_tif(dfile)
207209
ftim = np.fft.ifftshift(np.fft.ifftn(np.fft.fftshift(image), norm='forward'))

0 commit comments

Comments
 (0)