diffractem.adxv module

Adxv remote control.

Inspired by: https://github.com/erikssod/adxv_class by Daniel Eriksson (MIT license) https://github.com/keitaroyam/yamtbx by Keitaro Yamashita (BSD license)

class diffractem.adxv.Adxv(adxv_bin=None, hdf5_path='/entry/data/raw_counts', **kwargs)[source]

Bases: object

contrast_max(N)[source]

contrast_max - sets the max contrast value

contrast_min(N)[source]

contrast_min - sets the min contrast value

define_spot(color, radius=0, box=0, group=None)[source]
exit()[source]

Exit Adxv

increment_files()[source]

increment_files - unchecks the +Slabs checkbox in the Load Window

increment_slabs()[source]

increment_slabs - checks the +Slabs checkbox in the Load Window

is_alive()[source]
load_image(image_file)[source]

Load an image file

load_spots(spots)[source]
raise_image()[source]

Raises image window; see raise_window for additional options but this seems like the most common one.

raise_window(window)[source]

Raises a Window. <window> must be one of ‘Control’, ‘Image’, ‘Magnify’, ‘Line’, or ‘Load’.

save_image(path_name_format)[source]

Save an image file (jpeg or tiff)

send(payload)[source]

Takes command, encodes it, and sends it down the socket.

set_slab(N)[source]

Same as slab, but don’t load the image

set_slabs(N)[source]

Same as slabs, but don’t load the image

slab(N)[source]

Display slab N

slabs(N)[source]

Slab thickness to display

start(cwd=None)[source]
stride(N)[source]

stride - sets Stride in the Load Window