CWEPR

class specatalog.models.measurements.CWEPR(**kwargs)[source]

Continuous-wave electron paramagnetic resonance (cw-EPR) measurement.

This subclass of Measurement represents a continuous-wave EPR experiment. This model adds method-specific parameters such as microwave frequency band and attenuation, while all general metadata (temperature, solvent, operator, timestamps, etc.) are inherited from Measurement.

The model participates in SQLAlchemy polymorphism using the "cwepr" polymorphic_identity. Any row in measurements where method='cwepr' will therefore be loaded as a CWEPR instance.

id

Primary key linked to measurements.id with cascading delete.

Type:

int

frequency_band

Microwave frequency band used for the cw-EPR experiment. (X-band, Q-band…), e.g. X or Q.

Type:

FrequencyBands

attenuation

Microwave attenuation setting applied during signal acquisition.

Type:

str

Notes

  • The tablename is cwepr

  • All shared metadata fields are inherited and documented in Measurement.

  • The id of a CWEPR object corresponds directly to the associated row in the main measurements table.

Examples

Creating a CW-EPR measurement:

>>> from measurements import CWEPR
>>> from molecules import Molecule
>>> mol = Molecule(name="TEMPO1")
>>> m = CWEPR(
...     molecule=mol,
...     method="cwepr",
...     temperature=295.0,
...     solvent="Water",
...     date=date(2025, 3, 10),
...     measured_by="Alice",
...     path="/data/M17",
...     corrected=True,
...     evaluated=False,
...     frequency_band="X",
...     attenuation="10 dB",
... )
>>> session.add(m)
>>> session.commit()

Polymorphic loading:

>>> m = session.query(Measurement).filter_by(id=17).one()
>>> type(m)
<class 'models.CWEPR'>