-
- Downloads
Speed up imports by using importlib instead of pkg_resources
Speed up imports by up to a second by replacing uses of `pkg_resources` with the new Python standard library module `importlib.resources` (or, for Python < 3.7, the backport `importlib_resources`). The old `pkg_resources` module is known to be slow because it does a lot of work on startup. See, for example, [pypa/setuptools#926](https://github.com/pypa/setuptools/issues/926) and [pypa/setuptools#510](https://github.com/pypa/setuptools/issues/510).
- ligo/computeDiskMass.py 10 additions, 4 deletionsligo/computeDiskMass.py
- ligo/em_bright.py 11 additions, 7 deletionsligo/em_bright.py
- ligo/p_astro_utils.py 0 additions, 1 deletionligo/p_astro_utils.py
- ligo/tests/__init__.py 0 additions, 0 deletionsligo/tests/__init__.py
- ligo/tests/data/__init__.py 0 additions, 0 deletionsligo/tests/data/__init__.py
- ligo/tests/test_em_bright.py 1 addition, 1 deletionligo/tests/test_em_bright.py
- ligo/tests/test_p_astro.py 21 additions, 25 deletionsligo/tests/test_p_astro.py
- ligo/tests/test_p_astro_computation.py 13 additions, 7 deletionsligo/tests/test_p_astro_computation.py
- ligo/tests/test_p_astro_gstlal.py 18 additions, 15 deletionsligo/tests/test_p_astro_gstlal.py
- setup.py 1 addition, 0 deletionssetup.py