Skip to content

Commit a511d0e

Browse files
committed
Fix usage example in documentation
1 parent a5e01fb commit a511d0e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/index.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ It is written in **Rust** with a **Python** interface.
1212
`````{tab-set}
1313
````{tab-item} Python
1414
```python
15-
from feos import EquationOfState, State
16-
from feos.parameters import Parameters
15+
import feos
1716
1817
# Build an equation of state
19-
parameters = Parameters.from_json(['methanol'], 'parameters.json')
20-
eos = EquationOfState.pcsaft(parameters)
18+
parameters = feos.Parameters.from_json(['methanol'], 'parameters.json')
19+
eos = feos.EquationOfState.pcsaft(parameters)
2120
2221
# Define thermodynamic conditions
23-
critical_point = State.critical_point(eos)
22+
critical_point = feos.State.critical_point(eos)
2423
2524
# Compute properties
2625
p = critical_point.pressure()

0 commit comments

Comments
 (0)