Replaced usages of np.array() in rad_loss_rate() to convert parts of GOESLightCurve DataFrame is numpy arrays with np.asarray().
Replaced usages of np.array() in rad_loss_rate() to convert parts of
GOESLightCurve DataFrame is numpy arrays with np.asarray().

Added if statement in rad_loss_rate() to ensure that AttributeError
was raised due to absence of temperature and/or em data in GOESLightCurve
before carrying on with code.

Added download kwarg to rad_loss_rate() as exists in temp_em().

Replaced usage of exceptions module.

Alex-Ian-Hamilton/sunpy,Alex-Ian-Hamilton/sunpy,dpshelio/sunpy,dpshelio/sunpy,Alex-Ian-Hamilton/sunpy,dpshelio/sunpy