Skip to content

Commit

Permalink
fix: [LINT] add brackets for bedmas
Browse files Browse the repository at this point in the history
  • Loading branch information
singjc committed Jan 29, 2024
1 parent 09544a4 commit 70954a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion massdash/structs/Data1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def adjust_length(self, length):
slice_left = slice_right = excess_length // 2
else: # length % 2 == 1
slice_left = excess_length // 2
slice_right = excess_length + 1 // 2
slice_right = (excess_length + 1) // 2
new_data = self.data[slice_left:-slice_right]
new_intensity = self.intensity[slice_left:-slice_right]
else: # length > len(self.data):
Expand Down

0 comments on commit 70954a2

Please sign in to comment.