Skip to content

Commit 9702942

Browse files
committed
fix get data
1 parent 9824829 commit 9702942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specparam/objs/fit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,12 @@ def get_model(self, component='full', space='log'):
674674
assert space in ['linear', 'log'], "Input for 'space' invalid."
675675

676676
if component == 'full':
677-
output = self.fooofed_spectrum_ if space == 'log' else unlog(self.fooofed_spectrum_)
677+
output = self.modeled_spectrum_ if space == 'log' else unlog(self.modeled_spectrum_)
678678
elif component == 'aperiodic':
679679
output = self._ap_fit if space == 'log' else unlog(self._ap_fit)
680680
elif component == 'peak':
681681
output = self._peak_fit if space == 'log' else \
682-
unlog(self.fooofed_spectrum_) - unlog(self._ap_fit)
682+
unlog(self.modeled_spectrum_) - unlog(self._ap_fit)
683683
else:
684684
raise ValueError('Input for component invalid.')
685685

0 commit comments

Comments
 (0)