Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing key in halo_data. #109

Open
martinjameswhite opened this issue Aug 14, 2023 · 2 comments
Open

Missing key in halo_data. #109

martinjameswhite opened this issue Aug 14, 2023 · 2 comments
Labels
HOD for abacusnbody.hod

Comments

@martinjameswhite
Copy link

I'm trying to run AbacusHOD on the new "DESI2" simulation that Lehman has generated (Abacus_DESI2_c000_ph300). During construction of the AbacusHOD object it throws a missing key error:

newBall = AbacusHOD(sim_params,HOD_params,clustering_params)
File "/global/homes/m/mwhite/.conda/envs/abacus/lib/python3.9/site-packages/abacusnbody/hod/abacus_hod.py", line 153, in init
np.vstack((np.log10(self.halo_data['hmass']), self.halo_data['hdeltac'], self.halo_data['hfenv']))
.T,
KeyError: 'hdeltac'

where

sim_params: {'sim_name': 'Abacus_DESI2_c000_ph300', 'sim_dir': '/global/cfs/cdirs/desi/cosmosim/Abacus/', 'output_dir': './', 'subsample_dir': './', 'z_mock': 2.5, 'cleaned_halos': True}

@lgarrison
Copy link
Member

@SandyYuan Can you help with this?

@lgarrison lgarrison added the HOD for abacusnbody.hod label Aug 14, 2023
@lgarrison
Copy link
Member

A quick scan of the source code suggests that setting want_AB = True (assembly bias) in the HOD_params might fix this, but it seems like a bug if it crashes with this off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HOD for abacusnbody.hod
Projects
None yet
Development

No branches or pull requests

2 participants