sambit-giri / tools21cm

MIT License
22 stars 18 forks source link

Fix for gaussian_random_field() #5

Closed garrelt closed 4 years ago

garrelt commented 4 years ago

I removed the use of map() in this function and replaced it by a list operation. The function map() works differently in Python 3, which gave the problem.

garrelt commented 4 years ago

I also tracked down other functions that use the map() function. I only found one other: halo_list.py. I made a similar replacement there.

garrelt commented 4 years ago

This pull request now also includes the fix for power_spectrum.py which caused it not to work correctly.