nakas commited on
Commit
a8c7cbe
·
1 Parent(s): c5c7289

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -2
utils.py CHANGED
@@ -621,8 +621,7 @@ class Utils_functions:
621
  -2,
622
  )
623
 
624
- strg = (np.float32(abwvc))
625
- ## convert np.int16 array to float32 array
626
  listToStr = ' '.join(map(str, strg))
627
  return (
628
  np.clip(spec, -1.0, 1.0),
 
621
  -2,
622
  )
623
 
624
+ strg = (np.int16(abwvc * 32767.0)) ## convert np.int16 array to float32 array
 
625
  listToStr = ' '.join(map(str, strg))
626
  return (
627
  np.clip(spec, -1.0, 1.0),