Love the package! I'm trying to document my own package which uses isochrones but there seems to be a bug that causes my build to fail.
When the environment variable "READTHEDOCS" is True, the package fails on import. This seems to be because you define LOG_ONE_OVER_ROOT_2PI using numpy but you don't import it when on_rtd=True (see here)
To reproduce:
export READTHEDOCS=True
python
import isochrones
And you'll get the error:
LOG_ONE_OVER_ROOT_2PI = np.log(1.0 / np.sqrt(2 * np.pi))
NameError: name 'np' is not defined
Love the package! I'm trying to document my own package which uses
isochrones
but there seems to be a bug that causes my build to fail.When the environment variable "READTHEDOCS" is
True
, the package fails on import. This seems to be because you defineLOG_ONE_OVER_ROOT_2PI
using numpy but you don't import it whenon_rtd=True
(see here)To reproduce:
And you'll get the error: