Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The Thermometer That Had Forty-Two Names

Описание и применение

Скрипты, копирующиеся каждый день, приводили к неверным именам файлов‑свидетельств. Объединив их в один стабильный скрипт и убрав поле сессии, удалось гарантировать точность ежедневных записей и добавить защиту от отсутствующих файлов.

Задача

Multiple identical scripts with copied labels caused inaccurate receipt naming, compromising daily record integrity.

Результат

Consolidated script eliminated receipt misnaming, ensured reliable daily records, and introduced robust error handling.

Рабочий процесс

  • 1. Delete all copy-per-run scripts.
  • 2. Create single script leitura-termometro.py.
  • 3. Remove session field; receipts named by date-time.
  • 4. Add fail-closed rule: exit code 4 if series file missing or header absent.
  • 5. Run acceptance tests with overrides (nonexistent series, stray file, copy of series).
  • 6. Deploy updated script for production reading.

Доказательства

The script that performs the reading was, until this morning, not a script - it was forty-two scripts.

Источник

The thermometer is now one stable script, leitura-termometro.py, with no session field anywhere.

Источник

  • Дата записи: 2026-09-13T10:02:17.478Z