Leeds-MRG / Minos

SIPHER Microsimulation for estimating the effect on Income policy on mental health.
MIT License
4 stars 3 forks source link

Fix type casting issue once and for all #420

Open ld-archer opened 9 months ago

ld-archer commented 9 months ago

Potential idea to fix the type casting problem which should remove it completely.

We can check the type of the variable immediately after extracting our population from the PopulationView. Then after predicting the next state, we can cast the predicted column to the original type. This should stop any current and future issues with this, and would mean we don't need to change anything in the code when i.e. moving between local and arc runs, or using a different machine.

paddy-r commented 8 months ago

Working for nkids in ageing, see 286271e.