Coverage for backend/ahuora-compounds/ahuora_property_packages/modular/templates/pengrobinson.py: 78%
9 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
1from typing import List
2from ahuora_compounds.packages.chemsep import ChemsepCompound as Compound
3from ahuora_property_packages.types import States
4from ..builder.common_parsers import (
5 build_base_units,
6 build_bubble_dew_method,
7 build_components,
8 build_pr_kappa,
9 build_phase_equilibrium_state,
10 build_phases_in_equilibrium,
11 build_phases,
12 build_pressure_ref,
13 build_state_bounds,
14 build_state_definition,
15 build_temperature_ref,
16)
17from ..builder.coolprop_parsers import build_coolprop_components
19def build_pr_configuration(compounds: List[Compound], valid_states: List[States]) -> dict:
20 return {
21 'base_units': build_base_units(compounds, valid_states),
22 'bubble_dew_method': build_bubble_dew_method(compounds, valid_states),
23 'components': build_components(compounds, valid_states),
24 'parameter_data': build_pr_kappa(compounds, valid_states),
25 'phase_equilibrium_state': build_phase_equilibrium_state(compounds, valid_states),
26 'phases': build_phases(compounds, valid_states),
27 'phases_in_equilibrium': build_phases_in_equilibrium(compounds, valid_states),
28 'pressure_ref': build_pressure_ref(compounds, valid_states),
29 'state_bounds': build_state_bounds(compounds, valid_states),
30 'state_definition': build_state_definition(compounds, valid_states),
31 'temperature_ref': build_temperature_ref(compounds, valid_states),
32 }
34def build_coolprop_configuration(compounds: List[Compound], valid_states: List[States]) -> dict:
35 return {
36 'base_units': build_base_units(compounds, valid_states),
37 'bubble_dew_method': build_bubble_dew_method(compounds, valid_states),
38 'components': build_coolprop_components(compounds, valid_states),
39 'parameter_data': build_pr_kappa(compounds, valid_states),
40 'phase_equilibrium_state': build_phase_equilibrium_state(compounds, valid_states),
41 'phases': build_phases(compounds, valid_states),
42 'phases_in_equilibrium': build_phases_in_equilibrium(compounds, valid_states),
43 'pressure_ref': build_pressure_ref(compounds, valid_states),
44 'state_bounds': build_state_bounds(compounds, valid_states),
45 'state_definition': build_state_definition(compounds, valid_states),
46 'temperature_ref': build_temperature_ref(compounds, valid_states),
47 }