ramp_database.model
.ScoreType¶
-
class
ramp_database.model.
ScoreType
(name, is_lower_the_better, minimum, maximum)¶ ScoreType table.
- Parameters
- namestr
The name of the score.
- is_lower_the_betterbool
Whether a lower score is better.
- minimumfloat
The minimum possible score.
- maximumfloat
The maximum possible score.
- Attributes
- idint
The ID of the row table.
- is_lower_the_betterbool
Whether a lower score is better.
- minimumfloat
The minimum possible score.
- maximumfloat
The maximum possible score.
- eventslist of
ramp_database.model.EventScoreType
A back-reference to the event using the score.
-
__init__
(name, is_lower_the_better, minimum, maximum)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.