pylabrobot.gyger.ValveCalibration#
- class pylabrobot.gyger.ValveCalibration(points: tuple[tuple[float, float], ...], pressure: float, fluid: str | None = None, valve_serial: str | None = None, valve_type: str | None = None, source_id: str | None = None, vendor_xml: str | None = None)#
Bases:
objectMeasured (volume in µL, opening duration in seconds) points at a given pressure.
Points must increase in both volume and duration. Interpolation is linear, as in CERTUS CONTROL. Extrapolation is rejected. Use the calibration for the installed valve and fluid, at the stated pressure in bar.
Attributes
Methods
__init__(points, pressure[, fluid, ...])duration_for_volume(volume, *[, ...])Interpolate seconds for a volume in µL, after applying a volume correction.
from_dict(data)Load the explicitly versioned PLR calibration representation.
from_vendor_xml(text, *[, calibration_id])Import one CERTUS CONTROL calibration-map, rejecting ambiguous selections.
load(path)Load a PLR calibration file without contacting hardware.
save(path)Write a reusable PLR calibration file in µL, seconds, and bar.
to_dict()Serialize a calibration in PLR default units, including its source metadata.
Return the imported vendor map with all metadata and disabled points retained.
validate_for(*, fluid, valve_serial)Match declared installed fluid and valve identity to calibration metadata.