Data Models#
ScanRecord#
- class grad300_client.ScanRecord[source]#
Bases:
objectStructured scan record returned by the backend API.
- __init__(id, scan_type, file_name, file_path, size, source, ra, dec, date, date_obs, date_end, gain, comment, metadata=<factory>)#
- classmethod from_api(scan_type, payload)[source]#
Build a
ScanRecordfrom a raw API response dict.- Parameters:
- Returns:
Populated record instance.
- Return type:
- Raises:
ValueError – If required fields are missing or have unexpected types.
ScanType#
- class grad300_client.ScanType[source]#
-
Enumeration of supported scan types.
Each member is also a plain
strso it can be used directly as an API parameter value (e.g."TPI").- IMAGES = 'Images'#
On-the-fly imaging scans.
- ONOFF = 'OnOff'#
On-Off switching scans.
- SPECTRUM = 'Spectrum'#
Spectral-line scans.
- TPI = 'TPI'#
Total-power integration scans.
- __new__(value)#