Skip to content

Commit 3c41c08

Browse files
committed
Added data about uncharacterized ingredients, and the warnings generated, to what's sent to productopener.
1 parent 4ce398c commit 3c41c08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server.py

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def _run_update_loop(self):
200200
},
201201
"ef_single_score_log_stddev": np.std(np.log(impact['impact_distributions']['EF single score'])),
202202
"mass_ratio_uncharacterized": impact['uncharacterized_ingredients_mass_proportion']['impact']
203+
"uncharacterized_ingredients": impact['uncharacterized_ingredients'],
204+
"uncharacterized_ingredients_mass_proportion": impact['uncharacterized_ingredients_mass_proportion'],
205+
"uncharacterized_ingredients_ratio": impact['uncharacterized_ingredients_ratio'],
206+
"warnings": impact['warnings'],
203207
}
204208
self.stats["estimate_impacts_success"] += 1
205209
except Exception as e:

0 commit comments

Comments
 (0)