Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • NEW: Node RoiArch got new output terminal Mask (Array2d)
  • Use tmo_opal1:raw:image (Array2d) as input to RoiArch, draw/edit arch, get Mask (Array2d) shaped as input image.

Usage of RoiArch for

...

multi-panel detector and make 2-d and 3-d masks

Code Block
titleTest command
ami-local -b 1 -f interval=1 psana://exp=uedcom103,run=7,dir=/cds/data/psdm/prj/public01/xtc

...

  • use epixquad:raw:raw (Array3d) and epixquad:calibconst (dict) as input to Geometry to generate image (Array2d),
  • pass this image to RoiArch input, draw/edit arch, get Mask (Array2d) shaped as input image,
  • use node Mask3dFrom2d with input mask2d from RoiArch and inds_xy from Geometry to generate 3-d mask array shaped as raw data,
  • use nodes TableFromArr3d to convert 3-d mask to 2-d table of segments (without Geometry) to plot with ImageViewer.1

Image Added

Potential extension of the node Geometry for 3-d mask output (TEMPORARY FOR PRESENTATION ONLY)

...

  • Mask 3-d can be converted directly in the node Geometry (Mask3dFrom2d may not be required...), BUT
    • it needs in optional input parameters
  • AMI does not work correctly with default input terminals
    • unused terminals must be remover interactively
    • if intermediate terminal removed input is moved to previous one...
  • Also need in a few parameters in TableFromArr3d, but
    • AMI fails to pickle qt modules (ComboBox, etc) and crashes...

Example of issue with pickle of qt object

Code Block
titleTest code and command
Essential code is in ami/flowchart/library/Psalg.py

ami-local -b 1 -f interval=1 psana://exp=uedcom103,run=7,dir=/cds/data/psdm/prj/public01/xtc

Image Added

Image Added

Crash:

Image Added

...

Image Added

PythonEditor for calib components of epix10ka and epixhr detectors

...