[BUG]: undefined variable error in examples/log_parsing/postprocessing.py
#1765
Labels
bug
Something isn't working
examples/log_parsing/postprocessing.py
#1765
Version
24.06
Which installation method(s) does this occur on?
Source
Describe the bug.
In
LogParsingPostProcessingStage::__get_label_dicts
there is a possibility that thenew_label
andnew_confidence
variables are undefined.The code defines these inside an
if
block inside of a for-loop, and assumes one of two situations is true:if
statement evaluated toTrue
and are definedif
statement evaluated toFalse
but the variables were defined in a previous iteration of the loop.There are situations where neither of the above are true and the code fails.
This was encountered recently parsing a new dataset that was not in the format expected.
We should either (or both):
Minimum reproducible example
No response
Relevant log output
Click here to see error details
Full env printout
Click here to see environment details
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: