We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 165fedb commit 75b3260Copy full SHA for 75b3260
1 file changed
src/graphnet/models/graphs/utils.py
@@ -431,8 +431,9 @@ def add_percentile_summary(
431
def add_counts(self, location: Optional[int] = None) -> np.ndarray:
432
"""Add the counts of the sensor to the summarization features."""
433
self._add_column(np.log10(self._counts), location)
434
- new_name = ["counts"]
435
- self._add_column_names(new_name, location)
+ if self._input_names is not None:
+ new_name = ["counts"]
436
+ self._add_column_names(new_name, location)
437
438
def add_sum_charge(
439
self, charge_index: int, location: Optional[int] = None
0 commit comments