feat(properties): prefer atmospheric BP; mark pressure when non-standard - #63
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Schema + surfacing
boiling_point_pressure_mmhgcolumn (None when atmospheric).predict.pyreads it; the workbench shows "BP °C (at N mmHg)" when non-standard.Nonewhen PubChem has no usable BP.The volatiles table is being re-crawled with the corrected parser now.