Skip to content

Commit

Permalink
fix set indexing (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: mikael10j <[email protected]>
Co-authored-by: Thomas Vuillaume <[email protected]>
  • Loading branch information
3 people authored Jul 20, 2023
1 parent 2a6155a commit f5d9751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctaplot/gammaboard/gammaboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def guess_particle_type_from_file(file_path):
"""
def get_id_from_array(array):
if len(set(array)) == 1:
return set(array)[0]
return array[0]
else:
return None

Expand Down

0 comments on commit f5d9751

Please sign in to comment.