mes changements
This commit is contained in:
parent
459415abf7
commit
ec73caebda
12
temp.py
12
temp.py
@ -99,20 +99,10 @@ def volume_ligand(conc_init_metal, V_metal, conc_ligand):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
V_ligand_actuel = 0 # debut titrage
|
|
||||||
V_ligand_step = 0.1 #intervalle de volume titrant entre chaque mesure
|
|
||||||
V_equivalence = volume_eq(conc_init_metal, V_metal, conc_ligand)
|
V_equivalence = volume_eq(conc_init_metal, V_metal, conc_ligand)
|
||||||
V_ligand_stop = 2 * V_equivalence # fin titrage
|
V_ligand_stop = 2 * V_equivalence # fin titrage
|
||||||
V_ligand = [] # liste des volumes titrant utilises
|
|
||||||
|
|
||||||
nbre_V_ligand = round(V_ligand_stop, 1) * 10 # nombre de mesures
|
return [x/10 for x in range(int(V_ligand_stop*10))] # liste des volumes titrant utilises
|
||||||
|
|
||||||
for i in range(int(nbre_V_ligand) + 1): # remplissage liste des volumes titrant utilises
|
|
||||||
|
|
||||||
V_ligand.append(round(V_ligand_actuel, 1)) # on a claqué le round car les valeurs de i n'étaient pas entieres, et la boucle if ne tombait alors jamais sur le cas de l'équivalence
|
|
||||||
V_ligand_actuel += V_ligand_step
|
|
||||||
|
|
||||||
return V_ligand
|
|
||||||
|
|
||||||
|
|
||||||
def _logM(V_ligand, conc_init_metal, V_metal, conc_ligand, cation, pH, Kf):
|
def _logM(V_ligand, conc_init_metal, V_metal, conc_ligand, cation, pH, Kf):
|
||||||
|
Loading…
Reference in New Issue
Block a user