diff --git a/pystellibs/stellib.py b/pystellibs/stellib.py index 2eb9074..44a424f 100644 --- a/pystellibs/stellib.py +++ b/pystellibs/stellib.py @@ -283,8 +283,8 @@ def generate_individual_spectra(self, stars, **kwargs): null_value = kwargs.pop('null', np.nan) dlogT = kwargs.pop('dlogT', self._dlogT) dlogg = kwargs.pop('dlogg', self._dlogg) - ndata = len(stars) logT, logg, logL, Z = stars['logT'], stars['logg'], stars['logL'], stars['Z'] + ndata = len(logT) # weights to apply during the interpolation (note that radii must be in cm) weights = self.get_weights(logT, logg, logL)