Skip to content

Commit

Permalink
remove unused kwargs in VectorDataDict.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
zebengberg committed Sep 1, 2023
1 parent 0d1d606 commit 4fcf06d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pycontrails/core/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,17 @@ class VectorDataDict(Dict[str, np.ndarray]):
----------
data : dict[str, np.ndarray], optional
Dictionary input
**kwargs : np.ndarray
Keyword arguments, override values in ``data``
"""

__slots__ = ("_size",)

#: Length of the data
_size: int

def __init__(self, data: dict[str, np.ndarray] | None = None, **kwargs: np.ndarray) -> None:
data = data or {}
super().__init__(data, **kwargs)
def __init__(self, data: dict[str, np.ndarray] | None = None) -> None:
super().__init__(data or {})

# validate any arrays, first one defines size()
# validate any arrays, first one defines _size attribute
for arr in self.values():
self._validate_array(arr)

Expand Down

0 comments on commit 4fcf06d

Please sign in to comment.