alan-turing-institute / uatk-spc

Synthetic Population Catalyst
https://alan-turing-institute.github.io/uatk-spc/
MIT License
20 stars 12 forks source link

Make proto output deterministic #54

Closed sgreenbury closed 1 year ago

sgreenbury commented 1 year ago

Closes #52.

This PR ensures protobuf outputs are deterministic for a given seed by:

A script is also added for comparing any given region with diff on JSON printed when outputs differ.

sgreenbury commented 1 year ago

Awesome PR! Thank you for fixing the problem and adding 2 thorough tests. Few tiny comments, then feel free to merge

Thanks @dabreegster, no problem! I've made some small amendments given your comments and will now merge.