Skip to content

Commit 5a89f34

Browse files
committed
more renaming
1 parent 98d432e commit 5a89f34

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

docker/gnn-benchmarking/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from icecube.icetray import I3Tray # pyright: reportMissingImports=false
1010

1111
from graphnet.deployment.i3modules import I3InferenceModule
12-
from graphnet.data.extractors.i3featureextractor import (
12+
from graphnet.data.extractors.icecube import (
1313
I3FeatureExtractorIceCubeUpgrade,
1414
)
1515
from graphnet.data.constants import FEATURES

src/graphnet/data/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class FEATURES:
5-
"""Namespace for standard names working with `I3FeatureExtractor`."""
5+
"""Namespace for standard names working with `I3PulseLevelExtractor`."""
66

77
ICECUBE86 = [
88
"dom_x",

src/graphnet/deployment/icecube/cleaning_module.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from graphnet.utilities.config import ModelConfig
1212
from graphnet.utilities.imports import has_icecube_package
1313
from graphnet.data.extractors.icecube import (
14+
I3PulseLevelExtractor,
1415
I3FeatureExtractor,
1516
I3FeatureExtractorIceCubeUpgrade,
1617
)
@@ -36,7 +37,10 @@ def __init__(
3637
pulsemap: str,
3738
features: List[str],
3839
pulsemap_extractor: Union[
39-
List[I3FeatureExtractor], I3FeatureExtractor
40+
List[I3PulseLevelExtractor],
41+
I3PulseLevelExtractor,
42+
List[I3FeatureExtractor],
43+
I3FeatureExtractor,
4044
],
4145
model_config: Union[ModelConfig, str],
4246
state_dict: str,

src/graphnet/deployment/icecube/inference_module.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
from graphnet.utilities.config import ModelConfig
1212
from graphnet.deployment import DeploymentModule
13-
from graphnet.data.extractors.icecube import I3FeatureExtractor
13+
from graphnet.data.extractors.icecube import (
14+
I3PulseLevelExtractor,
15+
I3FeatureExtractor,
16+
)
1417
from graphnet.utilities.imports import has_icecube_package
1518

1619
if has_icecube_package() or TYPE_CHECKING:
@@ -28,7 +31,10 @@ class I3InferenceModule(DeploymentModule):
2831
def __init__(
2932
self,
3033
pulsemap_extractor: Union[
31-
List[I3FeatureExtractor], I3FeatureExtractor
34+
List[I3PulseLevelExtractor],
35+
I3PulseLevelExtractor,
36+
List[I3FeatureExtractor],
37+
I3FeatureExtractor,
3238
],
3339
model_config: Union[ModelConfig, str],
3440
state_dict: str,
@@ -165,7 +171,7 @@ def _create_data_representation(self, frame: I3Frame) -> Data:
165171
return None
166172

167173
def _extract_feature_array_from_frame(self, frame: I3Frame) -> np.array:
168-
"""Apply the I3FeatureExtractors to the I3Frame.
174+
"""Apply the I3PulseLevelExtractor(s) to the I3Frame.
169175
170176
Arguments:
171177
frame: Physics I3Frame (PFrame)

0 commit comments

Comments
 (0)