Skip to content

Commit

Permalink
63 true divide (#65)
Browse files Browse the repository at this point in the history
* int division, closes #63

* float division error in plotting code, closes #63
  • Loading branch information
wsdewitt authored Dec 23, 2020
1 parent 40552ce commit 24cc225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushi/ksfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def plot_total(self, kwargs: Dict = dict(ls='', marker='.'),
if folded:
x += x[::-1] # fold the data spectrum
if self.n % 2 == 0:
x[self.n // 2 - 1] /= 2
x[self.n // 2 - 1] //= 2
plt.plot(range(1, self.n // 2 + 1), x[:self.n // 2], **kwargs)
else:
plt.plot(range(1, self.n), x, **kwargs)
Expand Down

0 comments on commit 24cc225

Please sign in to comment.