Skip to content

Commit 88657f5

Browse files
committed
fix docstring typo and attribute
1 parent fdffce3 commit 88657f5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/changes/2928.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The functionality of `~ctapipe.io.DL2EventLoader` can be mimicked with the follo
3939
This also introduces a helper function `~ctapipe.coordinates.altaz_to_nominal`
4040
to convert columns of alt/az coordinates to FOV coordinates in the
4141
`~ctapipe.coordinates.NominalFrame`, which works with the
42-
`~ctapipe.io.FeatureGenerator`.
42+
`~ctapipe.core.FeatureGenerator`.

src/ctapipe/io/event_preprocessor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class EventPreprocessor(Component):
3434
`~ctapipe.core.FeatureGenerator` and set the ``features`` property of this
3535
class with the columns you to retain in the output table.
3636
37-
In the `~ctapipe.core.FeatureGenerator`` used internally, you have access to several
38-
additional functions useful for DL2 processing:
37+
In the `~ctapipe.core.FeatureGenerator` used internally, you have access to
38+
several additional functions useful for DL2 processing:
3939
40-
- `~astropy.coordinates.angular_separation`
41-
- `~ctapipe.coordinates.altaz_to_nominal`
40+
- `~astropy.coordinates.angular_separation`
41+
- `~ctapipe.coordinates.altaz_to_nominal`
4242
"""
4343

4444
energy_reconstructor = traits.Unicode(
@@ -177,7 +177,7 @@ def _get_predefined_quality_criteria(self) -> list[tuple]:
177177
raise NotImplementedError(f"unsupported feature_set: {self.feature_set}")
178178

179179
@default("features")
180-
def default_features(self):
180+
def _features(self):
181181
"""Set the columns to output, for a given FeatureSet."""
182182
if self.feature_set == PreprocessorFeatureSet.dl2_irf:
183183
return [

0 commit comments

Comments
 (0)