From dbadb4b194bb5cb1a69ff363aca4f1e8729297dc Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Sat, 3 Aug 2024 02:28:52 +0300 Subject: [PATCH] debug: Check contents of `launchSchism.sh` on CI --- pyposeidon/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyposeidon/tools.py b/pyposeidon/tools.py index 8701363..4435f12 100644 --- a/pyposeidon/tools.py +++ b/pyposeidon/tools.py @@ -3,7 +3,6 @@ # Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence"). # Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the Licence for the specific language governing permissions and limitations under the Licence. - from __future__ import annotations import itertools @@ -32,7 +31,6 @@ import rioxarray import xarray as xr - from pyposeidon.utils.get_value import get_value @@ -325,6 +323,8 @@ def execute_schism_mpirun_script(cwd: str) -> None: Execute launchSchism.sh and save stdout/stderr to disk """ cmd = "./launchSchism.sh" + with open(f"{cwd}/{cmd}", "r") as fd: + contents = fd.read() proc = subprocess.run( shlex.split(cmd), check=False,