3.1.1.1.1.6. thyrsis.database.load_chemicals module¶
load chemical in site database
USAGE
python -m thyrsis.database.load_chemicals chemicals.csv
load chemical into the database
the expected .csv format is:
chemicals.csv: « name », « period », « atomic_mass », « radioactive_decay », « specific_activity », « water_quality_limit », « atomic_number », « masses_number »
-
thyrsis.database.load_chemicals.
get_float
(string)¶ convert a string into float, even with a “,” decimal limit
- Paramètres
string (string) – value to convert
- Renvoie
converted value
- Type renvoyé
float
-
thyrsis.database.load_chemicals.
load_chemicals
(cur, chemicals)¶ load chemicals values into the current database
- Paramètres
cur (sqlite3.Cursor) – cursor on a sqlite connection
chemicals (string) – path to a csv file of chemicals
- Renvoie
None