Versions Compared

Key

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

...

Code Block
languagepy
themeRDark
SDana In [3]: anaps anaps.MakeMask()
(32, 185, 388)
plot AvImg_cspad using the 5/99.5 percentiles as plot min/max: (0.199616, 263.383)
rectangle(r-click, R-enter), circle(c), polygon(p), dark(d), noise(n) or edgepixels(e)?:
c
Select center by mouse?
y
/reg/g/psdm/sw/releases/ana-0.17.30/arch/x86_64-rhel7-gcc48-opt/python/matplotlib/backend_bases.py:2399: MatplotlibDeprecationWarning: Using default event loop until function specific to this GUI is implemented
  warnings.warn(str, mplDeprecation)
center:  98067.8500159   87780.7509265
Select outer radius by mouse?
y
Select inner radius by mouse?
n
radii:  6044.641774   0
mask from circle (shape): (32, 185, 388)
Done?
n
created a mask....
masked now:  9506.0
masked tot:  9506.0
rectangle(r), circle(c) or polygon(p)?:
p
Number of Points (-1 until right click)?
5
[[  81561.33638984   90357.32502125]
 [  75822.06188735   95379.19021093]
 [  80126.51776422  101477.16936983]
 [  86941.90623593  100401.05540061]
 [  86583.20157952   92509.55295969]]
mask from polygon (shape): (32, 185, 388)
not implemented yet....
Done?
y
created a mask....
masked now:  5649.0
masked tot:  15155.0
Save to calibdir?
n
Save to local?
y
Invert?
n
LDanaSDana Out[3]: 
array([[1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1],
       ..., 
       [1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1],
       [1, 1, 1, ..., 1, 1, 1]])

...