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

Python3 fixes for RealSpaceInterface #394

Open timothydmorton opened 3 years ago

timothydmorton commented 3 years ago

The RealSpaceInterface doesn't work out of the box with python3. This fixes a number of things, including integer division and some type issues related to JSON encoding. Also makes the database pickle read/writes in binary, which also fixes some type issues.

timothydmorton commented 3 years ago

This would clearly supersede #250 which was done on an older version.

lesgourg commented 3 months ago

Dear @timothydmorton , I am very sorry for not following up on this, the RealSpaceInterface went out of our mind for a few years. Your PR is incredibly useful. I checked that it still works with the current CLASS version. We will incorporate these fixes in the next CLASS release (sometimes soon) with some acknowledgements for your help.