Skip to content

Commit

Permalink
bug: Changed alias from blockFrom and blockTo to block-From and block…
Browse files Browse the repository at this point in the history
…-To. (#639)

refs: #473
  • Loading branch information
tim-vd-aardweg committed Jun 11, 2024
1 parent 8eafe75 commit f234161
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hydrolib/core/dflowfm/bc/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ class TimeInterpolation(StrEnum):
linear = "linear"
"""str: Linear interpolation between times."""

block_from = "blockFrom"
block_from = "block-From"
"""str: Equal to that at the start of the time interval (latest specified time value)."""

block_to = "blockTo"
block_to = "block-To"
"""str: Equal to that at the end of the time interval (upcoming specified time value)."""


Expand Down
2 changes: 1 addition & 1 deletion tests/data/reference/bc/t3d_backwards_compatibility.bc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fileType = boundConds
[Forcing]
name = boundary_timeseries
function = timeseries
Time Interpolation = blockTo
Time Interpolation = block-To
offset = 1.23
factor = 2.34
quantity = time
Expand Down
2 changes: 1 addition & 1 deletion tests/data/reference/bc/test.bc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fileType = boundConds
[Forcing]
name = boundary_timeseries
function = timeseries
timeInterpolation = blockTo
timeInterpolation = block-To
offset = 1.230
factor = 2.340
quantity = time
Expand Down

0 comments on commit f234161

Please sign in to comment.