A GMP-compliant command-line tool that reads an autoclave temperature/pressure log (CSV) and verifies whether the cycle meets your defined acceptance criteria, such as minimum holding time above a target temperature, maximum temperature, and pressure range.
- Parses CSV logs with columns:
time,temperature_C,pressure_bar - Verifies continuous holding at or above a temperature threshold for a minimum duration
- Checks temperature never exceeds the allowed maximum
- Validates pressure stays within a configurable range during the hold
- Prints a detailed pass/fail report with timestamps
- Exit code reflects verification result (0 = pass, 1 = fail), suitable for CI/GMP documentation systems
No dependencies outside the Python standard library. Requires Python 3.8+.
git clone https://github.com/yourusername/autoclave-cycle-verifier.git
cd autoclave-cycle-verifierpython autoclave_cycle_verifier.py --file cycle_log.csvOptional arguments:
--hold-temp Holding temperature threshold (°C), default 121.0
--min-hold-time Minimum continuous hold time (minutes), default 15
--max-temp Maximum allowed temperature (°C), default 125.0
--min-pressure Minimum allowed pressure (bar) during hold, default 1.0
--max-pressure Maximum allowed pressure (bar) during hold, default 2.0
Example with custom criteria:
python autoclave_cycle_verifier.py --file run_123.csv --hold-temp 121.1 --min-hold-time 30 --max-temp 124.0CSV file with header and comma-separated values. Expected columns (case-insensitive): time, temperature_C, pressure_bar.
Time must be supported by Python's dateutil-free parsing (ISO format or HH:MM:SS). The log is expected to contain a full cycle with a clear heating, holding, and cooling phase.
MIT