Skip to content

Commit

Permalink
Merge pull request #13 from jfreissmann/master
Browse files Browse the repository at this point in the history
Fix a few typos and style issues.
  • Loading branch information
fwitte authored Jul 12, 2024
2 parents 8205aac + 33db3e0 commit 2882cd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ calculated and run the calculation:
Then you can plot the data to different types of plots, e.g. logph diagram:

.. code-block::
.. code-block:: python
>>> fig, ax = plt.subplots(1, figsize=(8, 5))
>>> diagram.draw_isolines(diagram_type='logph', fig=fig, ax=ax, x_min=0, x_max=3000, y_min=0.01, y_max=1000)
Expand All @@ -89,7 +89,7 @@ Then you can plot the data to different types of plots, e.g. logph diagram:

Or, a Ts-diagram:

.. code-block::
.. code-block:: python
>>> fig, ax = plt.subplots(1, figsize=(8, 5))
>>> diagram.draw_isolines(diagram_type='Ts', fig=fig, ax=ax, x_min=0, x_max=8000, y_min=0, y_max=700)
Expand Down
6 changes: 3 additions & 3 deletions src/fluprodia/fluid_property_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class FluidPropertyDiagram:
>>> import numpy as np
>>> diagram = FluidPropertyDiagram('water')
After object creation it is possible to specify isolines. There are deault
After object creation it is possible to specify isolines. There are default
isolines available, but these might not suit your requirements. We will
define temperature and enthalpy isolines for this case. Before that, we
need to specify the units if we do not want to use SI units. For available
Expand Down Expand Up @@ -263,7 +263,7 @@ def __init__(self, fluid):

@classmethod
def from_json(cls, path):
with open(path, "r") as f:
with open(path, "r", encoding="utf-8") as f:
data = json.load(f)

metadata = data["META"].copy()
Expand Down Expand Up @@ -446,7 +446,7 @@ def set_unit_system(self, **kwargs):
:code:`Pa, hPa, mbar, psi, kPa, bar, MPa`.
T : str
Unit of temperatur, units available are
Unit of temperature, units available are
:code:`K, °C, °F`.
s : str
Expand Down

0 comments on commit 2882cd6

Please sign in to comment.