Gating Classes¶
The following classes encode the gating keywords ($Gn*, $Rn*, $GATING, and $GATE).
These apply to each FCS version as follows (note that 3_0 is reused for
both FCS 3.0 and FCS 3.1):
Version |
UnivariateRegion* |
BivariateRegion* |
|---|---|---|
FCS2.0 |
||
FCS3.0 |
||
FCS3.1 |
||
FCS3.2 |
Univariate Regions¶
These encode one pair of $RnI and $RnW where each has a scaler value corresponding to a univariate gate.
- class pyreflow.UnivariateRegion2_0(index, gate)¶
Make a new FCS 2.0-compatible univariate region
- class pyreflow.UnivariateRegion3_0(index, gate)¶
Make a new FCS 3.0/3.1-compatible univariate region
- Variables:
index (
str) – (read-only) The index corresponding to either a gating or a physical measurement (the m and n in the $Gm* or $Pn* keywords). Must be a string like eitherGmorPnwheremis an integer and the prefix corresponds to a gating or physical measurement respectively.gate (
tuple[Decimal,Decimal]) – (read-only) The lower and upper bounds of the gate.
- Raises:
ParseKeywordValueError – if
indexis not likeP<X>orG<X>whereXis an integer one or greater
Bivariate Regions¶
These encode one pair of $RnI and $RnW where each has a pair of values corresponding to a bivariate gate.
- class pyreflow.BivariateRegion2_0(index, vertices)¶
Make a new FCS 2.0-compatible bivariate region
- class pyreflow.BivariateRegion3_0(index, vertices)¶
Make a new FCS 3.0/3.1-compatible bivariate region
- Variables:
index (
tuple[str,str]) – (read-only) The x/y indices corresponding to either a gating or a physical measurement (the m and n in the $Gm* or $Pn* keywords). Each must be a string like eitherGmorPnwheremis an integer and the prefix corresponds to a gating or physical measurement respectively.vertices (
list[tuple[float,float]]) – (read-only) The vertices of a polygon gate. Must not be empty.
- Raises:
InvalidKeywordValueError – if
verticesis emptyParseKeywordValueError – if field 1 or 2 in
indexis not likeP<X>orG<X>whereXis an integer one or greater
- class pyreflow.BivariateRegion3_2(index, vertices)¶
Make a new FCS 3.2-compatible bivariate region
Gated Measurements¶
This encodes one “gated measurement” described by the $Gn* keywords for a
given index n.
- class pyreflow.GatedMeasurement(scale=None, filter='', shortname=None, percent_emitted=None, range=None, longname='', detector_type='', detector_voltage=None)¶
The $Gm* keywords for one gated measurement.
- Variables:
scale (
tuple[()] |tuple[float,float] | None) – (read-write) The $GmE keyword.()means linear scaling and 2-tuple specifies decades and offset for log scaling. Defaults toNone.filter (
str) – (read-write) The $GmF keyword. Defaults to"".shortname (
str| None) – (read-write) The $GmN keyword. Defaults toNone.percent_emitted (
float| None) – (read-write) The $GmP keyword. Defaults toNone.range (
Decimal| None) – (read-write) The $GmR keyword. Defaults toNone.longname (
str) – (read-write) The $GmS keyword. Defaults to"".detector_type (
str) – (read-write) The $GmT keyword. Defaults to"".detector_voltage (
float| None) – (read-write) The $GmV keyword. Defaults toNone.
- Raises:
InvalidKeywordValueError – if
scalehas log scale floats which are not both positiveInvalidKeywordValueError – if
detector_voltageorpercent_emittedis negative,NaN,inf, or-infParseKeywordValueError – if
shortnameis""or contains commas