Skip to content

[IMG377] Implement visualization window for iMars3D ui

Zhang, Chen requested to merge IMG377_visualization_window into next

Original Gitlab enabler: IMG377

This PR introduces the following changes:

  • add new visualization window for visualizing 3D/2D image
  • implemented 4 different viewers
    • 3D
    • 3D with control
    • 2D
    • Hyperstack

To test the ui manually, make sure you testing environment can see /HFIR/CG1D/IPTS-25777/ (on analysis or via sshfs), use the following code

import panel as pn
from imars3d.ui.main import MainWindow

pn.extension(
    "vtk",  # for the 3D viewer
    "terminal",  # or the console
    "jsoneditor",  # for config viewer
    nthreads=0,
    notifications=True,
)
main_window = MainWindow()
main_window  # or pn.panel(main_window) or main_window.show() or main_window.servable()

The instrument should be CG1D and the IPTS number should be 25777. Set the experiment name to iron_man_8cz_py310.

Merge request reports