Skip to content

Commit

Permalink
Merge pull request #44 from bcaddy/iss43
Browse files Browse the repository at this point in the history
Fix iseult not recognizing some Tristan v2 files
  • Loading branch information
bcaddy authored Oct 21, 2024
2 parents 3e2b570 + cbb5b17 commit 4b724ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def __detect_tristan_data_version(file: h5py.File) -> int:
If the version of Tristan cannot be identified.
"""
# The fields to query were chosen only because they don't exist in the other version of Tristan
# Files: particles fields spectra paramater
# Files: particles fields spectra paramater: extra for improved matching on some dataset
v1_keys = ('che', 'densi', 'gamma', 'acool')
v2_keys = ('ind_1', 'dens1', 'ebins', 'algorithm:c')
v2_keys = ('ind_1', 'dens1', 'ebins', 'algorithm:c', 'ind_5')

if any(key in file for key in v1_keys):
return 1
Expand Down

0 comments on commit 4b724ab

Please sign in to comment.