wave discrimination update

Add auto-detection of test wavelength range