bayestar-inject fails with AttributeError with Astropy 5.1
bayestar-inject
is incompatible with Astropy 5.1, creating an AttributeError
when creating the command-line parser:
$ python -c "from ligo.skymap.tool.bayestar_inject import main; main()" --help
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/duncan/opt/mambaforge/envs/py310/lib/python3.10/site-packages/ligo/skymap/tool/bayestar_inject.py", line 272, in main
p = parser()
File "/home/duncan/opt/mambaforge/envs/py310/lib/python3.10/site-packages/ligo/skymap/tool/bayestar_inject.py", line 232, in parser
'--cosmology', choices=cosmology.parameters.available,
File "/home/duncan/opt/mambaforge/envs/py310/lib/python3.10/site-packages/astropy/cosmology/__init__.py", line 38, in __getattr__
raise AttributeError(f"module {__name__!r} has no attribute {name!r}.")
AttributeError: module 'astropy.cosmology' has no attribute 'parameters'.. Did you mean: 'Parameter'?