Skip to content

Commit

Permalink
Extract correct instrument name from spectrum filename [fixes #146]
Browse files Browse the repository at this point in the history
  • Loading branch information
tboggs committed Nov 13, 2022
1 parent 885d4a6 commit 0659ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral/database/ecostress.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Sig:
s['particle size'], sampleNum, s['owner'],
s['origin'], phase, s['description'])

instrument = os.path.basename(f).split('.')[1]
instrument = os.path.basename(f).split('.')[-3]
environment = 'lab'
m = sig.measurement

Expand Down

0 comments on commit 0659ee7

Please sign in to comment.