diff --git a/README.md b/README.md index 24486f4..10cecff 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,11 @@ You can get the source code from `github The development mode is often useful. From the fluidfoam directory, run:: - python -m build && pip install dist/fluidfoam*.whl --user + python3 -m pip install --editable . --user + +Or if you are using a virtual environment, run:: + python3 -m pip install --editable . Committing instructions (in development mode) --------------------------------------------- diff --git a/fluidfoam/readpostpro.py b/fluidfoam/readpostpro.py index b33f114..b27e5d4 100644 --- a/fluidfoam/readpostpro.py +++ b/fluidfoam/readpostpro.py @@ -175,7 +175,7 @@ def readprobes(path, probes_name="probes", time_name="0", name="U"): j += 1 elif "#".encode() not in line: break - n_probes = j-2 + n_probes = j-1 probes_loc = np.zeros([n_probes, 3], dtype=float) j = 0 header = True