Skip to content

Commit 75b3260

Browse files
committed
small_fix
1 parent 165fedb commit 75b3260

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/graphnet/models/graphs/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ def add_percentile_summary(
431431
def add_counts(self, location: Optional[int] = None) -> np.ndarray:
432432
"""Add the counts of the sensor to the summarization features."""
433433
self._add_column(np.log10(self._counts), location)
434-
new_name = ["counts"]
435-
self._add_column_names(new_name, location)
434+
if self._input_names is not None:
435+
new_name = ["counts"]
436+
self._add_column_names(new_name, location)
436437

437438
def add_sum_charge(
438439
self, charge_index: int, location: Optional[int] = None

0 commit comments

Comments
 (0)