bccp / nbodykit

Analysis kit for large-scale structure datasets, the massively parallel way
http://nbodykit.rtfd.io
GNU General Public License v3.0
111 stars 60 forks source link

Halotools AssertionError for empty catalog input #605

Closed jmsull closed 4 years ago

jmsull commented 4 years ago

Passing an empty catalog to HaloCatalog in order to populate an HOD returns an AssertionError:

File "/dev/shm/local/lib/python3.7/site- packages/halotools/sim_manager/user_supplied_halo_catalog.py", line 180, in _parse_constructor_kwargs assert Nhalos > 1 AssertionError

This becomes an issue when slicing a halo catalog in a relatively narrow mass range. A halotools fix is planned for December (halotools issue) but will leave this open until then

jmsull commented 4 years ago

Fixed in most recent version of halotools (specifically see commit cbe3190), closing this