Skip to content

Commit

Permalink
Add PureRecord and other Python classes to feos.ideal_gas (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner authored Nov 30, 2023
1 parent 101edad commit 87272c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- 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)
- Added `PureRecord`, `SegmentRecord`, `Identifier`, and `IdentifierOption` to `feos.ideal_gas`. [#205](https://github.com/feos-org/feos/pull/205)

## [0.5.1] - 2023-11-23
- Python only: Release the changes introduced in `feos-core` 0.5.1.
Expand Down
8 changes: 7 additions & 1 deletion src/python/ideal_gas.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
use feos_core::python::joback::{PyJobackParameters, PyJobackRecord};
use feos_core::parameter::IdentifierOption;
use feos_core::python::joback::*;
use feos_core::python::parameter::PyIdentifier;
use pyo3::prelude::*;

#[pymodule]
pub fn ideal_gas(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
m.add_class::<PyIdentifier>()?;
m.add_class::<IdentifierOption>()?;
m.add_class::<PyJobackRecord>()?;
m.add_class::<PyPureRecord>()?;
m.add_class::<PySegmentRecord>()?;
m.add_class::<PyJobackParameters>()
}

0 comments on commit 87272c3

Please sign in to comment.