Files
CoolProp/Web/scripts/__init__.py
Ian Bell 9772bbaeb0 fix(docs): regenerate consistency plots when fluids are added (#2755) (#2759)
The docs workflow cached `Consistencyplots/` under a static key, so
fluids added after the cache was first populated (e.g. Chlorine in
ee1e5416) never got consistency plots generated — producing dead
links like `.../Chlorine.html#consistency-plots`.

- `fluid_properties.Consistency.py`: skip fluids whose PNG already
  exists unless `COOLPROP_FORCE_CONSISTENCY=1`, so a cache-restored
  run is a cheap no-op that still picks up newly added fluids.
- `scripts/__init__.py`: move Consistency.py into the always-run
  task list (incremental check makes it safe); `full_rebuild=True`
  now sets `COOLPROP_FORCE_CONSISTENCY=1` to preserve the
  force-regenerate semantics.
- `docs_docker-run.yml`: cache key now hashes `dev/fluids/*.json` and
  `dev/incompressible_liquids/json/*.json`, with a `cached-props-`
  restore-key so adding a fluid invalidates the exact-key match and
  triggers an incremental regeneration seeded from the previous cache.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 19:06:37 -04:00

4.0 KiB