Own data¶
See Your own data for the CSV format.
pourbase.with_user_species ¶
with_user_species(database: ThermodynamicDatabase, species: str | Path | Iterable[UserSpecies]) -> UserSpeciesDatabase
database with user species from a CSV path or UserSpecies objects.
pourbase.open_dataset ¶
Open a dataset on its own: a pourbase SQLite file, or a CSV of species (see read_user_species).
pourbase.read_user_species ¶
Read user species from a CSV file in the format of the module documentation.
pourbase.dataset_from_csv ¶
dataset_from_csv(csv_path: str | Path, output_path: str | Path | None = None, reference: ThermodynamicDatabase | None = None) -> ThermodynamicDatabase
A database that holds only the species of a CSV file (the format of read_user_species).
The file is written as a SQLite database with the schema of the bundled release, so every part of
the package and application works with it. Each row becomes the only reported Gibbs energy of its
species, which the selection policy then recommends. Only the reference state (temperature, pressure and
the Gibbs energy of water) and the element names come from reference, the bundled database by
default. output_path defaults to a new temporary file. The replaces column is ignored.
pourbase.UserSpecies
dataclass
¶
UserSpecies(symbol: str, species: str, formula: str, charge: float, phase: str, gibbs_energy_J_mol: float, citation: str, uncertainty_J_mol: float | None = None, replaces: str | None = None)
One species supplied by the user.
pourbase.UserSpeciesDatabase ¶
Bases: ThermodynamicDatabase
The bundled database with user species added to, or substituted in, their systems.
species_records ¶
Evidence records of bundled and user species; a user species has its single supplied value.