✅ New Features
Graphical file selectors for both:
Choosing the discovery output file
Choosing the name and location of the analysis output file
Output saved to a text file formatted for easy copy/paste into Excel
Tab-separated values in the summary for compatibility with Excel columns
Modality breakdown + exam statistics in one concise report
📝 How to Use It
Save the code below as dicom_analysis_tool.py.
Run it (python dicom_analysis_tool.py or double-click if .py is registered).
Click the button to:
Select the discovery results .txt file.
Specify the output .txt destination.
It will create a text summary that can be easily opened in Excel (tab-delimited).
✅ New Features Included
Live Record Count: Label shows how many studies have been written.
Pause/Resume Button: Temporarily halt and resume querying without killing the session.
Stop Button: Gracefully terminates the process early.
Real-Time File Writing: Ensures each writer.writerow() call flushes immediately.
📝 Notes
f.flush() is automatic now with buffering=1 (line-buffered mode).
self.pause_event.wait() halts progress until "Resume" is pressed.
self.stop_event.is_set() stops the loop immediately.