astropy/halotools

Tutorial issues

mctcampb opened this issue · 5 comments

Hi there, I am pretty new to using halotools, so I am trying trying to get a sense of the package by working through some of the available tutorials. I have downloaded the default halo catalogs and am working through the tutorial "Galaxy Catalog Analysis Example: Galaxy-galaxy lensing." However, when I copy and paste the first chunk of code into my notebook and try to run it, I get the following error: 'CachedHaloCatalog' object has no attribute '_halo_table'. I have also downloaded some of the jupyter notebooks from the documents section and tried to run them myself, and the same error message popped up. I would really appreciate any help!

Hi @mctcampb before running the notebook, did you first download the initial halo catalog data? There are docs for that in the Getting Started with Halotools quickstart guide. In case you did not, then I think this error is expected.

Hi there,

Yes, I have downloaded every available halo catalog. Other members of my team are experiencing the same issue, and cannot use certain catalogs.

Hi @mctcampb sorry this issue continues to cause you problems. I have been having trouble reproducing it and so I'm having a hard time figuring out what could be causing it. When I run the first code cell of this notebook locally on my machine, it executes without complaints. The only things I can think of that would cause what you are seeing would be that either there was some problem with the download of the halo catalog, or that it has not been cached. Are you able to confirm that you do indeed have the halo table on disk? If you used the download_additional_halocat.py script that ships with halotools, then your halo catalog would be stored here:

$HOME/.astropy/cache/halotools/halo_catalogs/bolshoi/rockstar

There should also be a corresponding entry in the halo catalog cache log, which should be located here:
$HOME/.astropy/cache/halotools/halo_table_cache_log.txt

If you inspect that file (which is just plain ASCII), you should see an entry for every one of the halo catalogs you downloaded and cached, along with the path where it is stored. Could you check on these two things and let me know what you find?

Hi there, it seems like we figured out the issue. This problem only appears when using Windows, but not Linux/macOS. Thank you for the help!