Made plots not break if errors are all Nans
@@ -408,8 +408,8 @@ class LightCurve(object):
flux, flux_err = normalized_lc.flux, normalized_lc.flux_err
else:
flux, flux_err = self.flux, self.flux_err
- if flux_err is None:
- ax.plot(self.time, flux, marker='o', color=color,
+ if (flux_err is None) or (np.nansum(flux_err)==0):
+ ax.plot(self.time, flux, marker='.', color=color,
linestyle=linestyle, **kwargs)
else:
ax.errorbar(self.time, flux, flux_err, color=color,
