Added a check to assign_function() for when the spectrum_type arg is incorrect.
Authored by: bugman 2008-10-07
Parent: [r7561]
Child: [r7563]