Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
steckhelena committed Jul 12, 2022
1 parent f13350a commit 6c7b9f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions process_results.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
from typing import TypedDict

import numpy as np
import pandas as pd
Expand All @@ -9,10 +8,6 @@
from lab import ExperimentResult


class ProcessedExperiment(TypedDict):
...


def Average(lst):
if lst:
return sum(lst) / len(lst)
Expand All @@ -27,10 +22,10 @@ def get_godash_result_as_dataframe(godash_result_path: str) -> pd.DataFrame:
f.writelines([line for line in lines if not re.match(r"^[0-9]+$", line)])
f.truncate()

return pd.read_csv(godash_result_path, delim_whitespace=True)
return pd.read_csv(godash_result_path, delim_whitespace=True) # type: ignore


def process_pcap(experiment_result: ExperimentResult) -> ProcessedExperiment:
def process_pcap(experiment_result: ExperimentResult):
server_ip = experiment_result["server_ip"]

pcap = rdpcap(experiment_result["experiment_host_pcap_path"])
Expand Down

0 comments on commit 6c7b9f1

Please sign in to comment.