Vitens / phreeqpython

Object-oriented python wrapper for the VIPhreeqc module
Apache License 2.0
68 stars 19 forks source link

Can I change database ? #2

Closed charleywan2004 closed 5 years ago

AbelHeinsbroek commented 5 years ago

You can!

Use

import phreeqpython
pp = phreeqpython.PhreeqPython(database='custom_db.dat')

PhreeqPython comes standard with phreeqc.dat, pitzer.dat and vitens.dat. If you want to use your own database you need to add it to the database folder in your phreeqpython path. You can find the path where phreeqpython is installed using:

import pheeqpython
print(phreeqpython.__path__)