Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 7f760fa

Browse files
authored
Merge pull request #16 from feos-org/v0.1.3
Release v0.1.3
2 parents 3bf540b + 33a978d commit 7f760fa

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.1.3] - 2022-02-17
10+
### Fixed
11+
- The pore volume for `Pore3D` is now also accesible from Python. [#14](https://github.com/feos-org/feos-dft/pull/14)
12+
913
## [0.1.2] - 2022-02-16
1014
### Added
1115
- The pore volume using Helium at 298 K as reference is now directly accesible from `Pore1D` and `Pore3D`. [#13](https://github.com/feos-org/feos-dft/pull/13)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "feos-dft"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Philipp Rehner <prehner@ethz.ch>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

build_wheel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "feos_dft"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Philipp Rehner <prehner@ethz.ch"]
55
edition = "2018"
66

src/python/adsorption/pore.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ macro_rules! impl_pore {
99
/// The pore geometry.
1010
/// pore_size : SINumber
1111
/// The width of the slit pore in cartesian coordinates,
12-
/// or the pore radius in spherical and cylindircal coordinates.
12+
/// or the pore radius in spherical and cylindrical coordinates.
1313
/// potential : ExternalPotential
1414
/// The potential used to model wall-fluid interactions.
1515
/// n_grid : int, optional
@@ -175,6 +175,12 @@ macro_rules! impl_pore {
175175
external_potential.map(|e| e.to_owned_array()).as_ref(),
176176
)?))
177177
}
178+
179+
/// The pore volume using Helium at 298 K as reference.
180+
#[getter]
181+
fn get_pore_volume(&self) -> PyResult<PySINumber> {
182+
Ok(self.0.pore_volume()?.into())
183+
}
178184
}
179185

180186
#[pymethods]

0 commit comments

Comments
 (0)