Skip to content

Commit

Permalink
Merge branch 'name' into peakheights
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Aug 3, 2023
2 parents 9ab9b98 + 9702942 commit 0f123a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specparam/objs/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,12 @@ def get_model(self, component='full', space='log'):
assert space in ['linear', 'log'], "Input for 'space' invalid."

if component == 'full':
output = self.fooofed_spectrum_ if space == 'log' else unlog(self.fooofed_spectrum_)
output = self.modeled_spectrum_ if space == 'log' else unlog(self.modeled_spectrum_)
elif component == 'aperiodic':
output = self._ap_fit if space == 'log' else unlog(self._ap_fit)
elif component == 'peak':
output = self._peak_fit if space == 'log' else \
unlog(self.fooofed_spectrum_) - unlog(self._ap_fit)
unlog(self.modeled_spectrum_) - unlog(self._ap_fit)
else:
raise ValueError('Input for component invalid.')

Expand Down

0 comments on commit 0f123a8

Please sign in to comment.