diff --git a/README.rst b/README.rst index e7809e4..9890dd6 100644 --- a/README.rst +++ b/README.rst @@ -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) @@ -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) diff --git a/src/fluprodia/fluid_property_diagram.py b/src/fluprodia/fluid_property_diagram.py index 7cb15ea..a61d7c9 100644 --- a/src/fluprodia/fluid_property_diagram.py +++ b/src/fluprodia/fluid_property_diagram.py @@ -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 @@ -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() @@ -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