Closed amith-ananthram closed 1 year ago
here's the diff for the defaultdict solution above:
Thanks for the bug report. Commit https://github.com/usnistgov/ccu_validation_scoring/commit/0f9757db83e203520a6ccfc25655dfb84e2aa9fd fixes the code.
Thank you!
When running the changepoint scorer against the example files, I'm getting an empty
scores_by_class.tab
in the output directory. After digging into the code a bit, I think there might be a bug - there's an #append call to a pandas df (which, despite its name, is not an in-place operation). I think perhaps the expectation of the code at that point is it's operating on a normal list. When I make the change below, things seem to be working. Just wanted to draw your attention to it. Thanks!To reproduce:
The bug (in https://github.com/usnistgov/ccu_validation_scoring/blob/master/CCU_validation_scoring/score_changepoint.py#L263):
One possible fix (here: https://github.com/usnistgov/ccu_validation_scoring/blob/master/CCU_validation_scoring/score_changepoint.py#L220):
Thanks!