axeap.experiment package

axeap.experiment.experiment module

All experiment related classes and functions. (Used for live experimentation, not just inspecting data after experiments)

class axeap.experiment.experiment.ScanSetDirWatcher(scanset, dir, calibration_mode=False)[source]

Bases: watchdog.events.FileSystemEventHandler

Watch a directory and populate a .scan.ScanSet with any files that show up.

__init__(scanset, dir, calibration_mode=False)[source]
Parameters
  • scanset (core.scan.ScanSet)) – ScanSet to populate.

  • dir (pathlib.Path, str) – Path to directory to be watched.

  • calibration_mode (bool) – If True, calibration info file will also be loaded if added to dir.

on_any_event(event)[source]

Catch-all event handler.

Parameters

event (FileSystemEvent) – The event object representing the file system event.

start_watching()[source]
stop_watching()[source]