Skip to content

Commit b28fe15

Browse files
author
Andrew Hearin
committed
The _mc_galprop method of the BinaryGalpropModel class now
modifies the galaxy_table in-place, as recommended by @taldcroft, in a first attempt to make Halotools compatible with astropy/astropy#5556.
1 parent 2c0644b commit b28fe15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎halotools/empirical_models/component_model_templates/binary_galprop_models.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _mc_galprop(self, seed=None, **kwargs):
118118
mc_generator = np.random.random(custom_len(mean_galprop_fraction))
119119
result = np.where(mc_generator < mean_galprop_fraction, True, False)
120120
if 'table' in kwargs:
121-
kwargs['table'][self.galprop_name] = result
121+
kwargs['table'][self.galprop_name][:] = result
122122
return result
123123

124124

0 commit comments

Comments
 (0)