Public bug reported: Ubuntu release: 19.04 ---
Package Info: python3-healpy: Installed: 1.12.8-8 Candidate: 1.12.8-8 Version table: *** 1.12.8-8 500 500 http://de.archive.ubuntu.com/ubuntu disco/universe amd64 Packages 100 /var/lib/dpkg/status --- Expectation: When importing healpy in python and calling the function synfast, I expect it to produce different maps of the CMB from the same cl each time it is called since randomization is used to produce alms. Actual Behaviour: The same map is produced each time the function is called. This is incorrect from a Physics perspective, since there is no unique way to produce a CMB from one given cl. Reason: In the 'sphtfunc.py' file, located in the healpy directory, in lines 525 and 526, a seed is set for the numpy randomization function which gives the same output every time. These lines should be removed. NOTE: This is not the case in the source files, but when healpy is installed via this package it is there, probably from debugging. ** Affects: healpy (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1839344 Title: Function 'synfast' in 'sphtfunc.py' doesn't randomize when producing alms To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/healpy/+bug/1839344/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs