Skip to content

State.critical_point_pure returns a Python list containing FeOs State #296

Description

@ImagineBaggins

When I call State.critical_point_pure, instead of returning a FeOs State as indicated in the docs, it returns an Python list whose only element is the expected State.

Example code:

cp = State.critical_point_pure(pcsaft_pure[1])
print(f"Return ({cp}) is of type {type(cp)}")
print(f"Element ({cp[0]}) is of type {type(cp[0])}")

Output:

Return ([T = 309.00922 K, ρ = 6.41105 kmol/m³]) is of type <class 'list'>
Element (T = 309.00922 K, ρ = 6.41105 kmol/m³) is of type <class 'builtins.State'>

Not a huge issue, of course, but I imagine it would be good to have the return type of critical_point_pure to match the binary and general counterparts (or to update the documentation).


I am using feos v0.8.0 and si-units v0.11.0 with Python v3.11.3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions