Skip to content

Commit 03dec8a

Browse files
committed
remove unnecessary property
1 parent 4384ff5 commit 03dec8a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/graphnet/models/data_representation/data_representation.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def __init__(
7575
) # noqa: E501 # type: ignore
7676
self._input_feature_names = input_feature_names
7777

78+
self.nb_inputs = len(self._input_feature_names)
79+
7880
# Set data type
7981
self.to(dtype)
8082

@@ -96,11 +98,6 @@ def __init__(
9698
else:
9799
self.rng = default_rng()
98100

99-
@property
100-
def nb_inputs(self) -> int:
101-
"""Return the number of input features."""
102-
return len(self._input_feature_names)
103-
104101
@property
105102
def nb_outputs(self) -> int:
106103
"""Return the number of output features."""

0 commit comments

Comments
 (0)