Goal
Generate fresh processed data and publish it sovisualWeb immediately reads it from visualsApi.
Required output bundle
The API expects this structure underpublic/data:
yearly/<year>.jsonfor every year in scopecolumnar/*.npyfilescolumnar/metadata.jsoncolumnar/fips_order.jsonfips_lookup.jsonus_counties.geojson
Step 1: Regenerate processed files
From the TSAM pipeline:/Users/columbus/Development/idopt/matlabtoPythonTask/TSAMWPScripts/data_server/processed
Step 2: Copy into visualsApi
Step 3: Quick API checks
Step 4: Quick frontend check
Step 5: Commit and push
Data file updates should be committed in:visualsApiforpublic/data/*visualWebonly if frontend logic changed
Step 6: Deploy API
https://api.idoptlab.com/api
Common gotchas
- Keep FIPS as zero-padded 5-character strings.
- Keep
metadata.jsonyears and metric names aligned with files that exist. - If any metric key name changes, update frontend mappings (see New Metric Checklist).