Skip to content

Commit 6417cb9

Browse files
committed
fix typos & update method names
1 parent cd63d9c commit 6417cb9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fooof/objs/fit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def get_meta_data(self):
597597
for key in OBJ_DESC['meta_data']})
598598

599599

600-
def get_data_component(self, component='full', space='log'):
600+
def get_data(self, component='full', space='log'):
601601
"""Get a data component.
602602
603603
Parameters
@@ -620,7 +620,7 @@ def get_data_component(self, component='full', space='log'):
620620
Notes
621621
-----
622622
The 'space' parameter doesn't just define the spacing of the data component
623-
values, but rather defines the space of the additive data definiton such that
623+
values, but rather defines the space of the additive data definition such that
624624
`power_spectrum = aperiodic_component + peak_component`.
625625
With space set as 'log', this combination holds in log space.
626626
With space set as 'linear', this combination holds in linear space.
@@ -642,7 +642,7 @@ def get_data_component(self, component='full', space='log'):
642642
return output
643643

644644

645-
def get_model_component(self, component='full', space='log'):
645+
def get_model(self, component='full', space='log'):
646646
"""Get a model component.
647647
648648
Parameters
@@ -668,7 +668,7 @@ def get_model_component(self, component='full', space='log'):
668668
values, but rather defines the space of the additive model such that
669669
`model = aperiodic_component + peak_component`.
670670
With space set as 'log', this combination holds in log space.
671-
With space set as 'lienar', this combination holds in linear space.
671+
With space set as 'linear', this combination holds in linear space.
672672
"""
673673

674674
assert space in ['linear', 'log'], "Input for 'space' invalid."

fooof/tests/objs/test_fit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ def test_get_components(tfm):
319319
# Test get data & model components
320320
for comp in ['full', 'aperiodic', 'peak']:
321321
for space in ['log', 'linear']:
322-
assert isinstance(tfm.get_data_component(comp, space), np.ndarray)
323-
assert isinstance(tfm.get_model_component(comp, space), np.ndarray)
322+
assert isinstance(tfm.get_data(comp, space), np.ndarray)
323+
assert isinstance(tfm.get_model(comp, space), np.ndarray)
324324

325325
def test_get_params(tfm):
326326
"""Test the get_params method."""

0 commit comments

Comments
 (0)