open-reaction-database / ord-interface

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

Change "conversion" display of value + precision #80

Closed connorcoley closed 9 months ago

connorcoley commented 1 year 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 1 year ago

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

connorcoley commented 1 year 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 9 months ago

I will check status and close if appropriate.