Summary
Copy scripts/gen_ba_index.py (Board Licensure Action Source Index generator) into Projects/data-source-guide/scripts/ with the following portability fixes.
Changes
- Fix EXCEL input path — replace hardcoded
/Users/danfiorino/Downloads/Board Action Research - SOT.xlsx with a Path(__file__)-relative path pointing to temp-sot-downloads/Board Action Research - SOT.xlsx, matching the convention in sync_medicaid_index_from_sot.py
- Fix output path — replace
/tmp/ba_index.html with a repo-relative temp-sot-downloads/board_rows.html (resolves naming inconsistency with build_primary_source_ref.py which reads /tmp/board_rows.html)
- Wrap in
main() + if __name__ == '__main__' guard
- Add usage docstring describing input file location and how output integrates with the HTML
- Update README to document the three-script workflow:
gen_ba_index.py → sync_medicaid_index_from_sot.py → gen_pdf.js
Not included
build_primary_source_ref.py is excluded — it has hardcoded Medicaid data that conflicts with the SOT-driven sync_medicaid_index_from_sot.py workflow, and writes output to an absolute path outside the repo.
Summary
Copy
scripts/gen_ba_index.py(Board Licensure Action Source Index generator) intoProjects/data-source-guide/scripts/with the following portability fixes.Changes
/Users/danfiorino/Downloads/Board Action Research - SOT.xlsxwith aPath(__file__)-relative path pointing totemp-sot-downloads/Board Action Research - SOT.xlsx, matching the convention insync_medicaid_index_from_sot.py/tmp/ba_index.htmlwith a repo-relativetemp-sot-downloads/board_rows.html(resolves naming inconsistency withbuild_primary_source_ref.pywhich reads/tmp/board_rows.html)main()+if __name__ == '__main__'guardgen_ba_index.py→sync_medicaid_index_from_sot.py→gen_pdf.jsNot included
build_primary_source_ref.pyis excluded — it has hardcoded Medicaid data that conflicts with the SOT-drivensync_medicaid_index_from_sot.pyworkflow, and writes output to an absolute path outside the repo.