Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
make inverse_mode to keyword only
  • Loading branch information
jkienegger authored Mar 15, 2024
1 parent 1cb98d6 commit 966154a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paderbox/array/interval/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class ArrayInterval:
from_str = staticmethod(ArrayInterval_from_str)
inverse_mode = False

def __init__(self, array, inverse_mode: bool = False):
def __init__(self, array, *ignore, inverse_mode: bool = False):
"""
The `ArrayInterval` is in many cases equivalent to a 1-dimensional
boolean numpy array that stores activity information in an efficient
Expand Down Expand Up @@ -227,6 +227,8 @@ def __init__(self, array, inverse_mode: bool = False):
>>> assert all(a == ArrayInterval(a)[:])
"""
if ignore:
raise TypeError
if isinstance(array, ArrayInterval):
self._shape = array.shape
self.inverse_mode = array.inverse_mode
Expand Down

0 comments on commit 966154a

Please sign in to comment.