pypsbuilder.tcapi.TC34API

class pypsbuilder.tcapi.TC34API(workdir, tcexe, drexe, encoding='mac-roman')

Bases: TCAPI

__init__(workdir, tcexe, drexe, encoding='mac-roman')

Methods

__init__(workdir, tcexe, drexe[, encoding])

calc_assemblage(phases, p, t)

Method to run THERMOCALC to calculate compositions of stable assemblage.

calc_p(phases, out, **kwargs)

Method to run THERMOCALC to find univariant line using Calc P at T strategy.

calc_pt(phases, out, **kwargs)

Method to run THERMOCALC to find invariant point.

calc_px(phases, out, **kwargs)

Method to run THERMOCALC for P-X pseudosection calculations.

calc_t(phases, out, **kwargs)

Method to run THERMOCALC to find univariant line using Calc T at P strategy.

calc_tx(phases, out, **kwargs)

Method to run THERMOCALC for T-X pseudosection calculations.

calc_variance(phases)

Get variance of assemblage.

dogmin(phases, p, t, variance[, doglevel, ...])

Run THERMOCALC dogmin session.

interpolate_bulk(x)

parse_dogmin()

Dogmin parser.

parse_kwargs(**kwargs)

parse_logfile(**kwargs)

Parser for THERMOCALC 3.4x output.

read_prefsfile()

read_scriptfile()

rundr()

Method to run drawpd.

runtc([instr])

Low-level method to actually run THERMOCALC.

update_scriptfile(**kwargs)

Method to update scriptfile.

Attributes

axfile

Path to used a-x file.

csvfile

Path to csv file.

dataset

Version identification of thermodynamic dataset in use.

datasetfile

Path to dataset file.

drawpdfile

Path to drawpd file.

drfile

Path to -dr output file.

icfile

Path to ic file.

itfile

Path to it file.

logfile

Path to THERMOCALC log file.

ofile

Path to project output file.

prefsfile

Path to THERMOCALC prefs file.

scriptfile

Path to scriptfile.

tcnewversion

False for THERMOCALC older than 3.5.

tcversion

THERMOCALC version string