UT-Covid / episimlab

Framework for development of epidemiological models
https://ut-covid.github.io/episimlab/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Vertex ID as string #32

Open kellypierce opened 3 years ago

kellypierce commented 3 years ago

Some FIPS codes and ZCTAs start with "0"; if vertices are integer type then these leading zeros are lost. Vertex IDs should still be unique, but post-processing (e.g., joining model results to a shapefile for mapping) will require an extra step of detecting these missing leading zeros and restoring them. Long-term, it's better to have vertexes as strings. This might be best handled in the ingestion of the data structures that define the vertexes (rather than in the linked module), where we can define the relevant column types as str.

https://github.com/eho-tacc/episimlab/blob/0ef4048ed72aa86dbfebafd9689184e79cfcbc31/episimlab/setup/coords.py#L39