bug fix avgSpectra in jmGen.py for DTSA-II