Skip to content

Commit

Permalink
Update configuration.py (#46)
Browse files Browse the repository at this point in the history
* Update configuration.py

Avoid crash in case non-integer TRUNC values are used, e.g. when trunc is set to custom. TRUNC will still be handled as an integer in pysurfex.

* Update configuration.py

TRUNC can now be a float.
  • Loading branch information
MetNoMarvinK authored Oct 3, 2024
1 parent 8fe84de commit 224b426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysurfex/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def __init__(self, env, conf):
gsize = float(env["LGSIZE"])
trunc = 2 # linear
if "TRUNC" in env:
trunc = int(env["TRUNC"])
trunc = float(env["TRUNC"])
domain_dict = {
"nam_pgd_grid": {"cgrid": "CONF PROJ"},
"nam_conf_proj": {
Expand Down

0 comments on commit 224b426

Please sign in to comment.