crunchflow.output.speciation

Module for parsing speciation blocks from CrunchFlow output files.

Provides the Speciation class, which extracts geochemical species data and associated properties from each condition included within an input file.

Classes

Speciation

A class for parsing and storing the results from a single speciation block

Functions

get_float(line)

Extract a float value from a line formatted like 'Label = Value'.

Module Contents

crunchflow.output.speciation.get_float(line)[source]

Extract a float value from a line formatted like ‘Label = Value’.

Parameters:
linestr

The line to parse.

Returns:
float or None

The extracted float, or None if conversion fails.