dbs_classes.dbs_measure.DbsMeasure
self, database) dbs_classes.dbs_measure.DbsMeasure(
Methods
Name | Description |
---|---|
check_higher_level_usage | Check if a measure is used in a strategy. |
get | Return a measure object. |
list_objects | Return a dictionary with info on the measures that currently exist in the database. |
check_higher_level_usage
dbs_classes.dbs_measure.DbsMeasure.check_higher_level_usage(name)
Check if a measure is used in a strategy.
Parameters
Name | Type | Description | Default |
---|---|---|---|
name | str | name of the measure to be checked | required |
Returns
Name | Type | Description |
---|---|---|
list[str] | list of strategies that use the measure |
get
dbs_classes.dbs_measure.DbsMeasure.get(name)
Return a measure object.
Parameters
Name | Type | Description | Default |
---|---|---|---|
name | str | name of the measure to be returned | required |
Returns
Name | Type | Description |
---|---|---|
IMeasure | measure object |
list_objects
dbs_classes.dbs_measure.DbsMeasure.list_objects()
Return a dictionary with info on the measures that currently exist in the database.
Returns
Name | Type | Description |
---|---|---|
dict[str, Any] | Includes ‘name’, ‘description’, ‘path’ and ‘last_modification_date’ info |