"Dimension of spec do not match that of ExtinctionMW.lamb: try initilize (init_ext_model) by the actual size of spec which you want to apply the extinction to")
ifnothasattr(self,'ext'):
raiseValueError(
"Need to initialize the extinction model (init_ext_model) first")