resonance.api.types¶
resonance.api.types
¶
RsoxsError
¶
Bases: Exception
Base exception for RSoXS operations
MotorError
¶
Bases: RsoxsError
Motor operation failed
MotorTimeoutError
¶
Bases: MotorError
Motor move did not complete in time
ShutterError
¶
Bases: RsoxsError
Shutter operation failed
AcquisitionError
¶
Bases: RsoxsError
Data acquisition failed
ValidationError
¶
Bases: RsoxsError
Scan plan validation failed
ScanAbortedError
¶
Bases: RsoxsError
Scan was aborted by user
ScanPoint(index, motors, exposure_time, ai_channels=None, delay_after_move=0.2)
dataclass
¶
Single point in a scan trajectory
validate()
¶
Validate motor names and exposure time
Source code in src/resonance/api/types.py
ScanResult(index, motors, ai_data, exposure_time, timestamp, raw_data, image=None)
dataclass
¶
Results from a scan point with uncertainty
to_series()
¶
Convert to pandas Series with canonical column names.