open-reaction-database / ord-schema

Schema for the Open Reaction Database
https://open-reaction-database.org
Apache License 2.0
95 stars 27 forks source link

Add helper function for getting reaction yield #505

Closed connorcoley closed 3 years ago

connorcoley commented 3 years ago

After #496, product yields will be buried within a repeated measurement field for each product. To get the yield, we have to iterate over measurements and look for measurements with type YIELD. This warrants a helper function.