MissouriMRDT / Autonomy_Software

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
4 days ago14 days old
play_log has a cyclomatic complexity of 78 with "critical" risk
 98    
 99    return {"gps_position": gps_position, "rover_pose": rover_pose, "rover_pose_compass": rover_pose_compass, "compass": gps_compass, "accuracy": accuracy, "fps": fps, "state": states, "drive_power": drive_powers, "waypoints": waypoints, "clear_waypoints": clear_waypoints}
100
101def play_log(log_file_path):102    # Parse the log file
103    parsed_data_dicts = parse_log_file(log_file_path)
104
parse_log_file has a cyclomatic complexity of 19 with "high" risk
  7import re
  8from datetime import datetime
  9
 10def parse_log_file(log_file_path): 11    log_data = []
 12    # Read the log file into a pandas DataFrame
 13    with open(log_file_path, mode='r') as file: