Index DataBase
- class spectral_indices.idb.BaseModel(*args, **kwargs)[source]
Base Model for IDB database.
- DoesNotExist
alias of
BaseModelDoesNotExist
- classmethod get_or_raise(**kwargs) M[source]
Return object with kwargs query (from table attributes) or raise error if no object fit the query.
- Parameters:
cls (
Type[M]) – A BaseModel.- Raises:
ValueError – No object of table {cls.__name__} with {kwargs=}
- Returns:
Object of the table.
- Return type:
M
- class spectral_indices.idb.Formula(*args, **kwargs)[source]
Formula table
- DoesNotExist
alias of
FormulaDoesNotExist