原始内容
FTD Analysis System
TOPSY DATABASE. AI-powered systematic analysis of Formal Thought Disorder (FTD) in clinical interview transcripts using the TALD (Thought and Language Disorder) scale.
Branch Consolidation Workflow
This project uses a custom workflow to harvest generated output files from multiple feature branches and merge them into main without performing full Git merges.
Scripts
1. consolidate_outputs.sh
- Purpose: Iterates through all remote branches.
- Action: Extracts only files matching the pattern
**/output*(preserving their subdirectory location) and commits them to the current branch. - Usage: Run this while on
mainto gather results.
2. cleanup_branches.sh
- Purpose: repository hygiene after consolidation.
- Action: Deletes all local and remote branches, leaving only
main. - ⚠️ Warning: This action is destructive and cannot be undone. Ensure
consolidate_outputs.shran successfully before running this.
How to Run
Ensure you are on main:
git checkout main git pull origin mainHarvest the files:
./consolidate_outputs.shCheck your file tree to ensure all "output" files are present.
Clean up the repository:
./cleanup_branches.shFollow the prompt (type
y) to confirm deletion of remote branches.