Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Sep 11, 2024
1 parent 5ef8e23 commit 1db2408
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nomad_dos_fingerprints/DOSfingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def _calculate_bytes(self, energy, dos, grid):
grid_index = 0
for idx, grid_e in enumerate(grid_array):
if grid_e[0] > energy[0]:
grid_index = idx - 1
if grid_index < 0:
grid_index = 0
grid_index = max(idx - 1, 0)
break
grid_start = grid_index
fp_index = 0
Expand Down

0 comments on commit 1db2408

Please sign in to comment.