Skip to content

Commit

Permalink
Merge pull request #5 from hcs-t4sg/margo/readjson
Browse files Browse the repository at this point in the history
read_json
  • Loading branch information
AC-Dap authored Oct 8, 2023
2 parents 1c5b2b0 + b2213c3 commit 5fa0b39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ersilia/core/tracking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import pandas as pd


Expand Down Expand Up @@ -25,3 +26,11 @@ def track(self, input, result, meta):
print(self.read_csv(result))

print("Model metadata:", meta)

def log_to_console(self, data):
print(f"\n{json.dumps(data)}\n")

def read_json(self, result):
data = json.load(result)
self.log_to_console(result)
return data

0 comments on commit 5fa0b39

Please sign in to comment.