climate_ref.models.diagnostic
#
Diagnostic
#
Bases: CreatedUpdatedMixin, Base
Represents a diagnostic that can be calculated
Source code in packages/climate-ref/src/climate_ref/models/diagnostic.py
enabled = mapped_column(default=True)
class-attribute
instance-attribute
#
Whether the diagnostic is enabled or not
If a diagnostic is not enabled, it will not be used for any calculations.
name = mapped_column()
class-attribute
instance-attribute
#
Long name of the diagnostic
provider_id = mapped_column(ForeignKey('provider.id'))
class-attribute
instance-attribute
#
The provider that provides the diagnostic
slug = mapped_column()
class-attribute
instance-attribute
#
Unique identifier for the diagnostic
This will be used to reference the diagnostic in the benchmarking process