Skip to content

Overhaul generation of Python objects for EquationOfState.python #114

Merged
g-bauer merged 4 commits intomainfrom
fix_dual_numbers
Jan 27, 2023
Merged

Overhaul generation of Python objects for EquationOfState.python #114
g-bauer merged 4 commits intomainfrom
fix_dual_numbers

Conversation

@g-bauer
Copy link
Copy Markdown
Contributor

@g-bauer g-bauer commented Jan 17, 2023

Added macros to build

  • python dual numbers
  • python dual number states
  • the implementation of the HelmholtzEnergyDual trait for each state.

Currently based on github branch of num-dual. Will change Cargo.toml as soon as new version is published.

Open questions

  • Names of Python objects are not overwritten, i.e. no #[pyclass(name = ...)]
  • Names for dual numbers and state objects are all over the place. E.g. PyStateDualDualVec3 vs PyStateHDDVec2.
  • Ideas for coherent naming?

@prehner prehner added this to the v0.4.0 milestone Jan 18, 2023
@prehner prehner linked an issue Jan 18, 2023 that may be closed by this pull request
@g-bauer g-bauer marked this pull request as ready for review January 18, 2023 09:56
@prehner prehner added python Python related feature or issue core related to features in feos-core labels Jan 20, 2023
@g-bauer g-bauer requested a review from prehner January 26, 2023 16:36
Copy link
Copy Markdown
Contributor

@prehner prehner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I added a changelog entry. I guess the naming is as it is, it is not really exposed anyways ;)

@g-bauer g-bauer merged commit 2e8de3c into main Jan 27, 2023
@g-bauer g-bauer deleted the fix_dual_numbers branch January 27, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core related to features in feos-core python Python related feature or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Python compatible StateHD<D>s and respective dual numbers

2 participants