Skip to content

Commit

Permalink
minor len(star) replace by len(logT) for robustness to data types.
Browse files Browse the repository at this point in the history
Change suggested by Joanne Bogart
Allows to use more flexible types for  `star`
  • Loading branch information
mfouesneau authored Dec 9, 2024
1 parent 1385422 commit f32f89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystellibs/stellib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f32f89a

Please sign in to comment.