Version 3.5.2 #1409
cliffckerr
announced in
Announcements
Version 3.5.2
#1409
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Version 3.5.2 (2026-07-14)
Starsim v3.5.0 added several optimizations affecting how random numbers are drawn. However, these changes introduced several
dtype-related bugs that have been fixed in this release:ss.random()always returnedfloat64regardless of the configured typess.dtypes.float.ss.poisson()sometimes returningfloat64and sometimes returning an integer. It now always returnsss.dtypes.int.ss.multi_random.rvs()returning an incorrect number of samples due to type mismatches.ss.dtypes.float, the exact random values produced for agent-indexed draws are different from v3.5.1.ss.uids()now performs additional validation to more consistently ensure it only contains integers.ss.uids([1.5])would convert the input to an integer and thus returnss.uids([1]). However, because this usage would often reflect an error, this operation will now raise aTypeErrorto prevent inadvertent conversion of floats silently succeeding. To maintain previous functionality, convert the input to integers before callingss.uids().Timeline.now()returns durations rather than bare floats, for simulations that use duration-based units.Made the
folderargument ofss.Samplesoptional, and moved it from first to third.ss.Samples(resultsdir, outputs)should be changed toss.Samples(outputs, folder=resultsdir).GitHub info: PR 1393
This discussion was created from the release Version 3.5.2.
All reactions