Skip to content

Add helper to run pyincore analysis scripts - #106

Draft
longshuicy wants to merge 1 commit into
masterfrom
add-run-analysis-tests-script
Draft

longshuicy wants to merge 1 commit into
masterfrom
add-run-analysis-tests-script

Conversation

@longshuicy

Copy link
Copy Markdown
Member

Summary

  • Adds utils/pyincore_utils/run_analysis_scripts.sh to run each tests/pyincore/analyses/*/test_*.py as a plain Python script
  • Pass --pyincore-root (or PYINCORE_ROOT) to point at a local pyincore checkout
  • Supports analysis filters, --log, and --stop-on-fail; keeps username/password prompts on a real TTY
  • buildingdamage runs only test_buildingdamage_multihazard.py

Test plan

  • ./utils/pyincore_utils/run_analysis_scripts.sh --pyincore-root /path/to/pyincore buildingdamage runs only the multihazard script
  • --log records output while login prompts still surface

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant