fix removed api change regarding spectral functions
Merge pull request #2547 from toddrjen/apideltafix

fix removed api change regarding spectral functions