pdg.measurement module
- class pdg.measurement.PdgFootnote(api: PdgApi, foot_id: int)[source]
Bases:
objectClass for footnotes associated with a PdgMeasurement.
Note
The constructor is intended for internal API use.
- Parameters:
api – API object for retrieving data.
foot_id – Primary key of the footnote in the SQLite file.
- measurements() Iterator[PdgMeasurement][source]
Get an iterator of
PdgMeasurementobjects that refer to this footnote.
- references() Iterator[PdgMeasurement][source]
Deprecated alias for
measurements()
- class pdg.measurement.PdgMeasurement(api: PdgApi, msmt_id: int)[source]
Bases:
objectClass for an individual measurement from the PDG Listings.
Note
The constructor is intended for internal API use.
- Parameters:
api – API object for retrieving data.
msmt_id – Primary key of the measurement in the SQLite file.
- property changebar: bool[source]
True if this measurement has been added or updated since the previous PDG edition
- property charge: str[source]
Case-specific representation of the charge(s) of the particles involved in this measurement.
- footnotes() Iterator[PdgFootnote][source]
Get an iterator of
PdgFootnoteobjects for this measurements.
- get_value() PdgValue[source]
Get the
PdgValueassociated with this measurement.- Raises:
PdgAmbiguousValueError – If there are multiple values (i.e. this is a multi-column measurement).
- property reference: PdgReference[source]
The PdgReference associated with this measurement.
- class pdg.measurement.PdgReference(api: PdgApi, ref_id: int)[source]
Bases:
objectClass for literature references associated with a PdgMeasurement.
Note
The constructor is intended for internal API use.
- Parameters:
api – API object for retrieving data.
ref_id – Primary key of the reference in the SQLite file.
- class pdg.measurement.PdgValue(api: PdgApi, value_id: int)[source]
Bases:
objectClass for an individual numerical value associated with a PdgMeasurement.
Note
The constructor is intended for internal API use.
- Parameters:
api – API object for retrieving data.
value_id – Primary key of the value in the SQLite file.
- property column_name: str[source]
The name of the column (in plain text format) in which this value is displayed in the PDG Listings.
- property column_name_tex: str[source]
The name of the column (in TeX format) in which this value is displayed in the PDG Listings.
- property display_in_percent: bool[source]
True if value is rendered in percent for display in Listings.
Implies that
display_power_of_tenis -2.
- property display_power_of_ten: int[source]
Unit multiplier (as power of ten) as used for display in Listings.
- property display_value_text: str[source]
Value and uncertainty in plain text format as displayed in Listings tables.
Does not include any power of ten or percent sign. Must be combined with the
display_power_of_tenproperty in order to obtain the numerical value in units given by the property units.
- property error: float | None[source]
The total symmetric error for this value.
If the positive and negative errors differ, and the API is not in pedantic mode, accessing this property will give the average of the two.
- Raises:
PdgAmbiguousValueError – If the error is asymmetric and the API is in pedantic mode.
- property measurement: PdgMeasurement[source]
The corresponding
PdgMeasurementfor this value.
- property stat_error: float | None[source]
The statistical symmetric error for this value.
If the positive and negative errors differ, and the API is not in pedantic mode, accessing this property will give the average of the two.
- Raises:
PdgAmbiguousValueError – If the error is asymmetric and the API is in pedantic mode.
- property stat_error_negative: float | None[source]
The statistical component of the negative error for this value.
- property stat_error_positive: float | None[source]
The statistical component of the positive error for this value.
- property syst_error: float | None[source]
The systematic symmetric error for this value.
If the positive and negative errors differ, and the API is not in pedantic mode, accessing this property will give the average of the two.
- Raises:
PdgAmbiguousValueError – If the error is asymmetric and the API is in pedantic mode.
- property syst_error_negative: float | None[source]
The systematic component of the negative error for this value.
- property syst_error_positive: float | None[source]
The systematic component of the positive error for this value.
- property used_in_average: bool[source]
True if value is used for calculating averages shown in Summary Tables.
- property used_in_fit: bool[source]
True if value is used for calculating best-fits shown in Summary Tables.
- property value_text: str[source]
Value and uncertainty (in plain text format) in units given by property
units, including the power of ten, if applicable (seedisplay_power_of_ten).