ktindiana / sphinxval

SPHINX validation code for solar energetic particle models
MIT License
3 stars 3 forks source link

Merge calc_contingency() and calc_contingency_bool() #55

Closed rickyegeland closed 5 months ago

rickyegeland commented 5 months ago

In metrics.py, there are two functions that are copy-and-paste copies of each other, calc_contingency(), and calc_contingency_bool(). The former should just call the latter once the thresholds are applied, to reduce redundancy in the code.

claya71 commented 5 months ago

I will implement this change

ktindiana commented 5 months ago

Clayton did this and I added a line that was left out to make it work.