Skip to content

Commit 87272c3

Browse files
authored
Add PureRecord and other Python classes to feos.ideal_gas (#205)
1 parent 101edad commit 87272c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88
### Added
99
- Added `EquationOfState.ideal_gas()` to initialize an equation of state that only consists of an ideal gas contribution. [#204](https://github.com/feos-org/feos/pull/204)
10+
- Added `PureRecord`, `SegmentRecord`, `Identifier`, and `IdentifierOption` to `feos.ideal_gas`. [#205](https://github.com/feos-org/feos/pull/205)
1011

1112
## [0.5.1] - 2023-11-23
1213
- Python only: Release the changes introduced in `feos-core` 0.5.1.

src/python/ideal_gas.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
use feos_core::python::joback::{PyJobackParameters, PyJobackRecord};
1+
use feos_core::parameter::IdentifierOption;
2+
use feos_core::python::joback::*;
3+
use feos_core::python::parameter::PyIdentifier;
24
use pyo3::prelude::*;
35

46
#[pymodule]
57
pub fn ideal_gas(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
8+
m.add_class::<PyIdentifier>()?;
9+
m.add_class::<IdentifierOption>()?;
610
m.add_class::<PyJobackRecord>()?;
11+
m.add_class::<PyPureRecord>()?;
12+
m.add_class::<PySegmentRecord>()?;
713
m.add_class::<PyJobackParameters>()
814
}

0 commit comments

Comments
 (0)