Skip to content

Commit

Permalink
debug: Check contents of launchSchism.sh on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Aug 2, 2024
1 parent a0f78cf commit dbadb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyposeidon/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -32,7 +31,6 @@
import rioxarray
import xarray as xr


from pyposeidon.utils.get_value import get_value


Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dbadb4b

Please sign in to comment.