Skip to content

Use tiled to transfer live results between reconstruction and viewer. #10

@zr-gao

Description

@zr-gao

Currently, the live reconstruction results are saved as npy files into disk and loaded by the recon viewer for display.

np.save('/data/users/Holoscan/prb_live.npy',results[0])
np.save('/data/users/Holoscan/obj_live.npy',results[1])
with open('/data/users/Holoscan/iteration','w') as f:
f.write('%d\n'%results[2])
scan_num = results[3] # For future use

https://github.com/NSLS2/ptycho_gui/blob/78f1e6a46b9e8ccdd91182ccf6a0a8c2132cef66/src/nsls2ptycho/recon_viewer.py#L20-L21

These should be replaced with using tiled. Only catch here is that the live result files will be repeatedly overwritten when new data comes. We want to keep only the last generated result for each scan_num.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions