Skip to content

Commit

Permalink
Prefer get with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jan 7, 2025
1 parent 67f1da3 commit dc9047d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integrated/test-fci-boundary/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ mthread = 2
directory = "data"

with DataFile("grid.fci.nc") as grid:
try:
MXG = grid.read("MXG")
except:
MXG = 1
MXG = grid.get("MXG", default=1)
xfwd = grid.read("forward_xt_prime")[MXG:-MXG]
xbwd = grid.read("backward_xt_prime")[MXG:-MXG]

Expand Down

0 comments on commit dc9047d

Please sign in to comment.