Skip to content

Commit

Permalink
Update harmonics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Oct 17, 2024
1 parent 481e9e1 commit e919404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymodaq_plugins_mockexamples/hardware/harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def get_spectrum(self) -> Q_:
spectrum = Q_(np.zeros((self._npts,)))
for ind in range(self._n_harmonics):
spectrum += mutils.gauss1D(axis, (ind+1) * self._omega0, self._domega_ev)
spectrum *= self._current_value
spectrum *= self._current_values[0]
spectrum += 0.1 * np.random.random_sample((self._npts,))
return spectrum

0 comments on commit e919404

Please sign in to comment.