removed float() call in obs_wave and rest_wave functions so it will work with arrays