From 93b2ca95aa4452f3b28b8b3fc06314a53d857860 Mon Sep 17 00:00:00 2001 From: "Matthias.Renaud" Date: Fri, 28 Mar 2025 11:24:09 +0100 Subject: [PATCH 1/2] change instructions to install fluidfoam in dev mode, setup.py is no longer used --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 26f8312..a2cc694 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 root directory, run:: - python setup.py develop --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) --------------------------------------------- From 2344ec7da430f775ae288efc7f479ef0b6c0ef89 Mon Sep 17 00:00:00 2001 From: "Matthias.Renaud" Date: Thu, 18 Sep 2025 12:36:36 +0200 Subject: [PATCH 2/2] now correctly compute the number of probes, previously was mixing one probes which coordinates were not returned by the read_probes function --- fluidfoam/readpostpro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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