Skip to content

Add gen_ba_index.py to data-source-guide/scripts with portability fixes #7

@dan-certifyos

Description

@dan-certifyos

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.pysync_medicaid_index_from_sot.pygen_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions