-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_ecdf.py
More file actions
executable file
·46 lines (35 loc) · 1.13 KB
/
Copy pathrun_ecdf.py
File metadata and controls
executable file
·46 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
"""
Entry point for ECDF and bins generation.
This script provides a clean interface for generating ECDF
(Empirical Cumulative Distribution Function) and bin data
for labs, vitals, and respiratory support measurements.
Usage:
uv run run_ecdf.py
uv run run_ecdf.py --visualize # Also generate interactive HTML viewers
"""
import sys
from modules.ecdf.runner import ECDFRunner
def main():
"""Main entry point for ECDF generation."""
import argparse
parser = argparse.ArgumentParser(
description='Generate ECDF and bins data for labs, vitals, and respiratory support'
)
parser.add_argument(
'--visualize',
action='store_true',
help='Generate interactive HTML distribution viewers'
)
args = parser.parse_args()
try:
# Initialize and run the ECDF generator
runner = ECDFRunner()
success = runner.run(visualize=args.visualize)
# Exit with appropriate code
sys.exit(0 if success else 1)
except Exception as e:
print(f"\n❌ Fatal error: {e}")
sys.exit(1)
if __name__ == "__main__":
main()