fix boundary bug

This commit is contained in:
liangliang 2023-10-11 20:46:55 +08:00
parent 6e4471793c
commit da39bc9faa
2 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,8 @@ def analyze_log_block(logs_block):
check_for_info = False
round_start = False
return rounds, items_collected, positions, completed_tasks, failed_tasks
min_len: int = min(len(rounds), len(items_collected), len(positions), len(completed_tasks), len(failed_tasks))
return rounds[:min_len], items_collected[:min_len], positions[:min_len], completed_tasks[:min_len], failed_tasks[:min_len]
def save_item_results_png(rounds, items_collected, start_time, path_prefix):
# item png
@ -150,8 +151,6 @@ if __name__ == "__main__":
help="Start time for analysis in the log file.")
parser.add_argument('--end_time', type=str, default=None, nargs='?', help="End time for analysis in the log file.")
args = parser.parse_args()
# start_time = "2023-10-07 03:14"
# end_time = "2023-10-08 03:14"
current_script_path = os.path.dirname(os.path.abspath(__file__))
filename = f"{current_script_path}/logs/log.txt"

View file

@ -1,4 +1,5 @@
javascript
requests
psutil
chromadb==0.3.29
chromadb==0.3.29
minecraft_launcher_lib