imperialCHEPI / healthgps

Global Health Policy Simulation model (Health-GPS)
https://imperialchepi.github.io/healthgps/
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Use nholthaus/units for unit safety #173

Open jamesturner246 opened 1 year ago

jamesturner246 commented 1 year ago

A number of places --i.e. in risk factor model code -- are quite confusing with respect to the unit that each variable uses.

Using a unit library such as unit could help clarify and enforce proper unit use.

NOTE: we need to confirm the units used with the modelling team first.

chiphogg commented 2 months ago

Stumbled on this issue. Here's a GitHub search for C++ units libraries, and a comparison of leading options, to help you pick the one that's best for you. (Disclosure: I'm the author of one of the libraries, the one that is hosting the comparison page.)

alexdewar commented 1 week ago

@chiphogg Looks intriguing. Thanks! We'll check it out.