Skip to content

Commit

Permalink
fixed temp mod total time error
Browse files Browse the repository at this point in the history
  • Loading branch information
rclarke0 committed May 31, 2024
1 parent 75abbeb commit 8be5f14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions abr-testing/abr_testing/data_collection/read_robot_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,16 @@ def temperature_module_commands(file_results: Dict[str, Any]) -> Dict[str, Any]:
for command in commandData:
commandType = command["commandType"]
if commandType == "temperatureModule/setTargetTemperature":
temp_time = datetime.strptime(
command.get("completedAt", ""), "%Y-%m-%dT%H:%M:%S.%f%z"
)
tm_temp = command["params"]["celsius"]
tm_temp_change += 1
if commandType == "temperatureModule/waitForTemperature" and int(tm_temp) == 4:
time_to_4c = command_time(command)
temp_time = datetime.strptime(
command.get("completedAt", ""), "%Y-%m-%dT%H:%M:%S.%f%z"
)
if commandType == "temperatureModule/deactivate":
deactivate_time = datetime.strptime(
command.get("completedAt", ""), "%Y-%m-%dT%H:%M:%S.%f%z"
Expand Down

0 comments on commit 8be5f14

Please sign in to comment.