Skip to content

Get Property by Id, property name, and symbol

Choose a tag to compare

@sinagilassi sinagilassi released this 10 Oct 22:51
· 1831 commits to main since this release

New Features

  1. Enhanced Data Retrieval

We're excited to announce the addition of a powerful new capability to retrieve properties by ID, property name, and symbol. This enhancement enables more flexible and efficient data access.

Example Usage

# Build data
CO2_data = tdb.build_data(comp1, "Chemical Thermodynamics for Process Simulation",
                          "Table A.1 General data for selected compounds")

# Access data by:
# - ID
pp(CO2_data.get_property(12))
# - Property name
pp(CO2_data.get_property('standard-Gibbs-energy-of-formation'))
# - Symbol
pp(CO2_data.get_property('dGf_std'))

# Retrieve specific properties
CO2_Tc = float(CO2_data.get_property('Tc')['value'])  # CO2 Tc [K]
CO2_Pc = float(CO2_data.get_property('Pc')['value'])  # CO2 Pc [bar]