diff --git a/ersilia/core/tracking.py b/ersilia/core/tracking.py index b23e2b5e6..25404eb31 100644 --- a/ersilia/core/tracking.py +++ b/ersilia/core/tracking.py @@ -1,4 +1,5 @@ import json +import pandas as pd class RunTracker: """ @@ -8,13 +9,20 @@ class RunTracker: NOTE: Currently, the Splunk connection is not set up. For now, we will print tracking results to the console. """ + def read_csv(self, file): + # reads csv file and returns Pandas dataframe + return pd.read_csv(file) + def track(self, input, result, meta): """ Tracks the results after a model run. """ print("Run input file:", input) + print(self.read_csv(input)) + print("Run output file:", result) + print(self.read_csv(result)) print("Model metadata:", meta) diff --git a/pyproject.toml b/pyproject.toml index 9eb07620b..f64a7a5de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,10 @@ validators = [ {version="0.20.0", python="3.7.*"}, {version="~0.21.0", python=">=3.8"}, ] +pandas = [ + {version="1.2.4", python="3.7.*"}, + {version="~1.3.0", python=">=3.8"}, +] h5py = "^3.7.0" # For compatibility with isaura loguru = "^0.6.0" # For compatibility with isaura pyairtable = "<2"