3.1.2.11. thyrsis.simpleprovider module¶
-
class
thyrsis.simpleprovider.
SimpleProvider
(database, resultColumn, units)¶ Bases :
object
Abstract provider
-
PROVIDER_KEY
= 'simple_provider'¶
-
altitudeAt
(point)¶ return altitude given point, interpolate values if needed
- Paramètres
point (tuple) – point xy
- Renvoie
value
- Type renvoyé
float
-
availableColumns
()¶ returns a list (display name, colummn name) for available results
- Renvoie
available column
- Type renvoyé
list
-
availableUnits
()¶ Return available units
- Renvoie
available units
- Type renvoyé
dict
-
contours
()¶ return a map with the contour (name, group) as key and an array of vertices as values, contours are 3D
- Renvoie
contours
- Type renvoyé
dict
-
conversionFactor
(units=None)¶ conversion from the set units to any units, if units is not specify, return in SI units
- Paramètres
units (string) – units
-
database
()¶ Return db path
- Renvoie
db path
- Type renvoyé
string
-
date
()¶ Return a current date
- Renvoie
dates list
- Type renvoyé
list
-
dates
()¶ return a list of dates in case node values vary with time
- Renvoie
list of dates
- Type renvoyé
list
-
description
()¶ Return description
- Renvoie
description
- Type renvoyé
string
-
displayName
= {'concentration': 'Concentration', 'potentiel': 'Potentiel', 'vitesse_darcy_norme': 'Vitesse de Darcy'}¶
-
elementValues
()¶ return values at elements
- Renvoie
values at nodes
- Type renvoyé
ndarray
-
mass_balance
()¶ compute mass balance
- Return sat
sat values
- Rtype sat
list
- Return out
out values
- Rtype out
list
- Return insat
insat values
- Rtype insat
list
-
maxValue
(index=None)¶ Return max mesh value
- Paramètres
index (dict) – node index
- Renvoie
max value
- Type renvoyé
float
-
measuresAt
(point, withinDistance=0.5)¶ returns a map of measures in the vicinity of the considered point the map as the mesure type as key and [(date, value, uncertainty)] as values
- Paramètres
point (tuple) – point xy
withinDistance (float) – snap distance
- Renvoie
measures
- Type renvoyé
dict
-
minValue
(index=None)¶ Return min mesh value
- Paramètres
index (dict) – node index
- Renvoie
min value
- Type renvoyé
float
-
name
()¶ Return provider key
- Renvoie
key
- Type renvoyé
string
-
nodeCoord
(zColumn='0')¶ return a list of coordinates
- Paramètres
zColumn (string) – formula for column height or altitude
- Renvoie
return a list of coordinates
- Type renvoyé
ndarray
-
nodeValues
()¶ return values at nodes
- Renvoie
values at nodes
- Type renvoyé
ndarray
-
resultColumn
()¶ Return current column
- Renvoie
current column
- Type renvoyé
string
-
scatters
()¶ return a map with the contour name as key and an point as value
- Renvoie
scatters
- Type renvoyé
list
-
setDate
(didx)¶ Set current date index
- Paramètres
didx (integer) – date index
-
setDates
(dates)¶ set list of dates in case node values vary with time
- Paramètres
dates (list) – list of dates
-
setResultColumn
(columnName)¶ Set the current column
- Paramètres
columnName (string) – columnName
-
setUnits
(units)¶ Set units
- Paramètres
units (string) – units
-
sourceUnits
= {'concentration': 'kg/m³', 'potentiel': 'm', 'vitesse_darcy_norme': 'm/s'}¶
-
units
()¶ Return current units
- Renvoie
units
- Type renvoyé
string
-
valueAtElement
()¶ Return if the mesh is element based
- Renvoie
state
- Type renvoyé
bool
-
valuesAt
(point, svalue=False)¶ return a list of values at a given point, interpolate values if needed, returns sigma values if required and available
- Paramètres
point (tuple) – point xy
svalue (bool) – sigma values flag
- Renvoie
value
- Type renvoyé
float
-