3.1.1.1.1.8. thyrsis.database.load_measure module¶
load measures in site database
USAGE
- for concentration :
python -m thyrsis.database.load_measure [-d] site element_chimique units concFile.dat
- for potential :
python -m thyrsis.database.load_measure [-d] site potFile.dat
try to load measure into the site database
site is the name of the site
potFile.dat is the name of the measured potential at the “File” point
concFile.dat is the name of the measured concentration at the “File” point
element_chimique is the name of the chemical element in case of concentration
unit is the unit of the concentration
-d is an option used to delete corresponding measured values
-
thyrsis.database.load_measure.
load_measure
(conn, siteName, fileName, chemicalName=None, units=None, delete=False)¶ load measures values into the current database for a site
- Paramètres
conn (sqlite3.Connection) – connection on a sqlite database
siteName (string) – name of the site
fileName (string) – path to a csv file of measures
chemicalName (string) – name of chemicals to delete if already existing
units (string) – units of the measures
delete (bool) – flag to delete existing measure with the same name
- Renvoie
None