pypsbuilder.psexplorer.PTPS

class pypsbuilder.psexplorer.PTPS(*args, **kwargs)

Bases: PS

Class to postprocess ptbuilder project

__init__(*args, **kwargs)

Create PTPS class instance from builder project file.

Parameters:
  • projfile (str, Path) – psbuilder project file or files

  • tolerance (float) – if not None, simplification tolerance. Default None

  • origwd (bool) – If True TCAPI uses original stored working directory Default False.

Methods

__init__(*args, **kwargs)

Create PTPS class instance from builder project file.

add_overlay(ax[, fc, ec, label, skiplabels, ...])

calculate_composition([nx, ny])

Method to calculate compositional variations on grid.

check_phase_expr(phase, expr)

collect_all_data_keys()

Collect all phases and variables calculated on grid.

collect_data(key, phase, expr[, which])

Convinient function to retrieve values of expression for given phase for user-defined combination of results of divariant field identified by key.

collect_grid_data(key, phase, expr)

Retrieve values of expression for given phase for all GridData points within divariant field identified by key.

collect_inv_data(key, phase, expr)

Retrieve value of variables based expression for given phase for all invariant points surrounding divariant field identified by key.

collect_ptpath(tpath, ppath[, N, kind])

Method to collect THERMOCALC calculations along defined PT path.

collect_uni_data(key, phase, expr)

Retrieve values of expression for given phase for all univariant lines surrounding divariant field identified by key.

common_grid_and_masks(**kwargs)

Initialize common grid and mask for all partial grids

create_masks()

Update grid masks from existing divariant fields

fix_solutions()

Method try to find solution for grid points with failed status.

format_coord(x, y)

gendrawpd([export_areas])

Method to write drawpd file

get_gridded(phase[, expr, which, smooth])

get_grids(phase[, expr])

Convinient function to get dictionary of grids.

get_nearest_grid_data(x, y)

Retrieve nearest results from GridData to point.

get_section_id(x, y)

Return index of pseudosection and grid containing point

gidentify([label, skiplabels, labelfs])

Visual version of identify method.

ginput_path([label, skiplabels, labelfs])

Collect Path data by mouse digitizing.

glabel([label, skiplabels, labelfs])

Return formatted string of assamblage at PT point provided by mouse click.

identify(x, y)

Return key (frozenset) of divariant field for given temperature and pressure.

invs_from_unilist(ix, unilist)

Return set of IDs of invariant points associated with unilines.

isopleths(phase[, expr])

Method to draw compositional isopleths.

isopleths_vector(phase[, expr])

Method to draw vectorized compositional isopleths.

merge_data(phase, expr[, which])

Returns merged data obtained by collect_data method for all divariant fields.

onclick(event)

overlap_isopleths(*args, **kwargs)

Function to overlaped isopleths ranges.

pointcalc([label, skiplabels, labelfs])

remove_grid_data(key, phase, expr)

Remove calculated data from grid and mark as failed

save()

Save gridded copositions and constructed divariant fields into psbuilder project file.

save_tab(comps[, tabfile])

Export gridded values to Perple_X tab format.

search_composition(*args[, interpolation, ...])

Function to plot root squared error of calculated and estimated values.

show(**kwargs)

Method to draw PT pseudosection.

show_data(key, phase[, expr, which])

Convinient function to show values of expression for given phase for user-defined combination of results of divariant field identified by key.

show_delta([label, pointsec, skiplabels, ...])

Shows THERMOCALC execution time for all grid points.

show_grid(phase[, expr, interpolation, ...])

Convinient function to show values of expression for given phase only from Grid Data.

show_path_data(ptpath, phase[, expr, label, ...])

Show values of expression for given phase calculated along PTpath.

show_path_modes(ptpath[, exclude, cmap])

Show stacked area diagram of phase modes along PT path

show_status([label, skiplabels, labelfs])

Shows status of grid calculations

Attributes

endmembers

Returns dictionary with phases and their end-members names

gridded

True when compositional grid(s) is calculated, otherwise False

gridxstep

gridystep

keys

Returns set of all existing multivariant fields.

name

Get project directory name.

phases

Returns set of all phases present in pseudosection

ratio

variance

Returns dictionary of variances

x_var

xrange

y_var

yrange