Skip to content

Commit

Permalink
Merge pull request #67 from jambit/dcs
Browse files Browse the repository at this point in the history
Sync dcs
  • Loading branch information
opcode81 committed May 27, 2023
2 parents 034cf8a + e01700f commit 498125a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sensai/util/datastruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def slice(self: T, lowerBoundKey=None, upperBoundKey=None, inner=True) -> T:
slice is extended by one entry in both directions such that it contains the bounds (where possible)
:return:
"""
assert upperBoundKey >= lowerBoundKey
if lowerBoundKey is not None and upperBoundKey is not None:
assert upperBoundKey >= lowerBoundKey
if lowerBoundKey is not None:
if inner:
fromIndex = self.ceilIndex(lowerBoundKey)
Expand Down

0 comments on commit 498125a

Please sign in to comment.