-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add incomplete/absurd log detection.
• For runs that have a proper kill sequence, it is now checked whether the run is valid before it is converted to a run with relative timings. If it is invalid, the reasons are reported back to the user and the program gracefully continues with the next run. • Add documentation to several methods. • Update README.md to include the new feature. • Version bump to 2.5.1
- Loading branch information
Showing
5 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class BuggedRun(RuntimeError): | ||
"""An exception indicating that a run has bugged out - it does not have | ||
enough information to convert to a relative run. | ||
If require_heist_start is set to True, the analyzer should look for a 'job start' line. | ||
Otherwise, the analyzer can assume that a new run started that aborted the old run.""" | ||
def __init__(self, reasons: list[str]): | ||
self.reasons = reasons | ||
|
||
def __str__(self): | ||
reason_str = '\n'.join(self.reasons) | ||
return f'Bugged run detected, no stats will be displayed. Bugs found:\n{reason_str}\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters