lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
230 stars 285 forks source link

Fix integer division in `density_cl` #345

Closed JCGoran closed 2 years ago

JCGoran commented 4 years ago

Fix for #339 density_cl was returning a TypeError due to the fact that Python 3's division operator / is always assuming its doing float division, replaced it with //, the integer division operator, which works in both Python 2 and 3.