open-reaction-database / ord-interface

Search/browse interface and APIs for the Open Reaction Database
https://open-reaction-database.org
Apache License 2.0
18 stars 9 forks source link

Change "conversion" display of value + precision #80

Closed connorcoley closed 4 months ago

connorcoley commented 8 months ago

Conversion has both a value and precision component; currently, it is rendered as a dictionary, e.g.,

https://open-reaction-database.org/id/ord-02a6cbee10dc4fdc9d25ed24ae6ea6f5

image

I would suggest showing "value \pm precision" if precision is defined, or just "value" if precision is undefined

https://github.com/open-reaction-database/ord-interface/blob/cbfe8426531d78686e53eec051d2a09bb6962915/app/src/views/reaction-view/OutcomesView.vue#L98

mikennel commented 7 months ago

@connorcoley Like this? Just making sure I have the syntax correct based on your suggestion: image

connorcoley commented 7 months ago

Sorry for my ambiguity -- I think the unicode character for plus-minus (±) is most appropriate. \pm is the Latex command for it :)

(& if the precision is undefined, should just omit)

bdeadman commented 4 months ago

I will check status and close if appropriate.