clwainwright / CosmoTransitions

A package for analyzing finite or zero-temperature cosmological phase transitions driven by single or multiple scalar fields.
MIT License
25 stars 19 forks source link

fix linspace error #30

Closed jwittbrodt closed 3 years ago

jwittbrodt commented 3 years ago

Hi Carroll,

numpy was throwing errors about float valued arguments for the number of points in np.linspace() for me (python 3.9.2, numpy 1.20.1), so I added explicit casts to int around the np.ceil calls. I'm not sure in which numpy version it broke, or if np.ceil or np.linspace is to blame, but it's a trivial fix either way.

Thanks a lot for still looking out for this code after all these years.

Fixes #24, which reports the same error I was getting.

Cheers, Jonas