period_names
List of names of the sub-daily periods/time intervals, sub-monthly periods/day types, and sub-yearly/seasons used in the Permanence Score components.
PeriodBase
Source code in multimno/core/constants/period_names.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
is_valid_type(value)
classmethod
Check if the given value is a valid type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
str
|
String to check |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if value is a valid type, False otherwise |
Source code in multimno/core/constants/period_names.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
values()
classmethod
Get all string values defined in the class.
Returns:
Type | Description |
---|---|
set[str]
|
set[str]: Set of all string values |
Source code in multimno/core/constants/period_names.py
23 24 25 26 27 28 29 30 31 32 33 |
|
PeriodCombinations
All possible period combinations as flat lists.
Source code in multimno/core/constants/period_names.py
68 69 70 71 72 73 74 |
|