Skip to content

Commit

Permalink
Merge pull request #20 from jhardenberg/test-std-out
Browse files Browse the repository at this point in the history
Improve subprocess error trap
  • Loading branch information
oloapinivad authored Sep 25, 2023
2 parents 5f7daa0 + 8994573 commit 9a72a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smmregrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .cdo_weights import cdo_generate_weights
# from .util import find_vert_coords

__version__ = '0.0.2'
__version__ = '0.0.3'
4 changes: 2 additions & 2 deletions smmregrid/cdo_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def cdo_generate_weights2d(source_grid, target_grid, method="con", extrapolate=T
sgrid,
weight_file.name,
],
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)
else:
Expand All @@ -215,7 +215,7 @@ def cdo_generate_weights2d(source_grid, target_grid, method="con", extrapolate=T
sgrid,
weight_file.name,
],
stderr=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env,
)

Expand Down

0 comments on commit 9a72a4d

Please sign in to comment.