Skip to content

Feature: Solution.from_phreeqc to enable import of PHREEQC input files #222

@rkingsbury

Description

@rkingsbury

This feature would add a new @classmethod to Solution to enable user to create solution objects directly from a PHREEQC input file.

Solution.from_phreeqc(<path_to_phreeqc_input.pqi>)

Alternatively, this functionality could be added to from_file where the from_file method would detect the extension (.pqi) and parse the file accordingly. I don't know how consistently the pqi extension is used though, so this approach might be slightly more brittle than a dedicated method.

The intention here would be to parse the SOLUTION block of the PHREEQC input file to get composition, pH, pE, temperature, etc. Other features of PHREEQC are not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdds new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions