Skip to content

feat(properties): prefer atmospheric BP; mark pressure when non-standard - #63

Merged
rvnminers-A-and-N merged 1 commit into
mainfrom
feat/bp-atmospheric-pressure
Jun 30, 2026
Merged

rvnminers-A-and-N merged 1 commit into
mainfrom
feat/bp-atmospheric-pressure

Conversation

@rvnminers-A-and-N

Copy link
Copy Markdown
Collaborator

Fixes the geraniol-type caveat you flagged, and keeps non-standard data instead of dropping it (with its conditions marked).

Parser change

The BP parser took the median of all readings, so a compound PubChem lists only at reduced pressure (geraniol: ~125 °C @ ~12 mmHg) reported a misleadingly low value. Now it:

  • prefers an atmospheric reading (~700–820 mmHg) when one exists → geraniol now 230 °C;
  • when only reduced/elevated-pressure data exists, it keeps the highest-pressure reading and records its pressure — honest, not silently wrong.

Schema + surfacing

  • New boiling_point_pressure_mmhg column (None when atmospheric). predict.py reads it; the workbench shows "BP °C (at N mmHg)" when non-standard.
  • Verified: geraniol 230, vanillin 285, limonene 178; honest None when PubChem has no usable BP.

The volatiles table is being re-crawled with the corrected parser now.

…t standard

The BP parser took the median of all readings, so a compound listed only at reduced
pressure (geraniol: 125 °C @ ~12 mmHg) reported a misleadingly low value. Now it:
- PREFERS an atmospheric (~700–820 mmHg) reading when one exists (geraniol -> 230 °C);
- when only reduced/elevated-pressure data exists, reports the highest-pressure reading
  AND its pressure, so the value stays honest rather than silently wrong.

Adds a `boiling_point_pressure_mmhg` column (None/NaN when atmospheric); predict.py reads
it; the workbench shows "BP °C (at N mmHg)" when non-standard. Verified: geraniol 230,
vanillin 285, limonene 178; honest None when PubChem has no usable BP.

Signed-off-by: Austin L. <86896075+rvnminers-A-and-N@users.noreply.github.com>
@rvnminers-A-and-N
rvnminers-A-and-N merged commit 2219df9 into main Jun 30, 2026
3 checks passed
@rvnminers-A-and-N
rvnminers-A-and-N deleted the feat/bp-atmospheric-pressure branch June 30, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant