---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-45-b093c634158f> in <module>()
----> 1 model.populate_mock(halo_catalog)
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/halotools-0.6.dev4681-py2.7-linux-x86_64.egg/halotools/empirical_models/factories/hod_model_factory.pyc in populate_mock(self, halocat, **kwargs)
1205
1206 """
-> 1207 ModelFactory.populate_mock(self, halocat, **kwargs)
1208
1209
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/halotools-0.6.dev4681-py2.7-linux-x86_64.egg/halotools/empirical_models/factories/model_factory_template.pyc in populate_mock(self, halocat, Num_ptcl_requirement, **kwargs)
229 except KeyError:
230 pass
--> 231 self.mock = self.mock_factory(**mock_factory_init_args)
232
233 additional_potential_kwargs = ('masking_function', '_testing_mode', 'enforce_PBC', 'seed')
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/halotools-0.6.dev4681-py2.7-linux-x86_64.egg/halotools/empirical_models/factories/hod_mock_factory.pyc in __init__(self, Num_ptcl_requirement, halo_mass_column_key, **kwargs)
91 self.halo_mass_column_key = halo_mass_column_key
92
---> 93 self.preprocess_halo_catalog(halocat)
94
95 def preprocess_halo_catalog(self, halocat):
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/halotools-0.6.dev4681-py2.7-linux-x86_64.egg/halotools/empirical_models/factories/hod_mock_factory.pyc in preprocess_halo_catalog(self, halocat)
128 cutoff_mvir = self.Num_ptcl_requirement*self.particle_mass
129 mass_cut = halo_table[self.halo_mass_column_key] > cutoff_mvir
--> 130 max_column_value = np.max(halo_table[self.halo_mass_column_key])
131 halo_table = halo_table[mass_cut]
132 if len(halo_table) == 0:
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in amax(a, axis, out, keepdims)
2315 pass
2316 else:
-> 2317 return amax(axis=axis, out=out, **kwargs)
2318
2319 return _methods._amax(a, axis=axis,
/u/ki/swmclau2/.conda/envs/hodemulator/lib/python2.7/site-packages/numpy/core/_methods.pyc in _amax(a, axis, out, keepdims)
24 # small reductions
25 def _amax(a, axis=None, out=None, keepdims=False):
---> 26 return umr_maximum(a, axis, None, out, keepdims)
27
28 def _amin(a, axis=None, out=None, keepdims=False):
ValueError: zero-size array to reduction operation maximum which has no identity