Fix code quality issues from PR review

- Add matplotlib.use("Agg") backend configuration to prevent runtime errors in headless environments
- Add error handling guards for script results that might return None
- Fix AI targeting logic to exclude already-fired cells in super hunter and hunter modes
- Update CLAUDE.md with matplotlib best practices
This commit is contained in:
Russell Ballestrini 2025-08-10 16:01:58 -04:00
parent 4d909aaecb
commit 1ca6f67c3d
7 changed files with 38 additions and 23 deletions

View file

@ -2,6 +2,8 @@ default_max_attempts_per_step: 3
# Common processing script for all plotting steps
common_processing_script: &plotting_script |
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot
import numpy
import io