Skip to content

Commit

Permalink
Merge pull request #189 from galaxyproject/188-metrics
Browse files Browse the repository at this point in the history
Metrics
  • Loading branch information
ksuderman authored Apr 28, 2023
2 parents 6efa5ef + 4b1c9d6 commit 14c7e2f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions abm/lib/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@ def summarize(context: Context, args: list):
if not os.path.isfile(input_path) or not input_path.endswith('.json'):
continue
try:
print(f"Loading {input_path}")
with open(input_path, 'r') as f:
data = json.load(f)
if data['job_metrics']['tool_id'] == 'upload1':
print('Ignoring upload tool')
if data['metrics']['tool_id'] == 'upload1':
#print('Ignoring upload tool')
continue
row = make_row(data)
print(separator.join([ str(x) for x in row]))
Expand All @@ -167,15 +166,15 @@ def summarize(context: Context, args: list):

def make_table_row(data: dict):
row = [ str(data[key]) for key in ['run', 'cloud', 'job_conf', 'workflow_id', 'history_id', 'inputs']]
row.append(parse_toolid(data['job_metrics']['tool_id']))
row.append(data['job_metrics']['state'])
for e in _get_metrics(data['job_metrics']['job_metrics']):
row.append(parse_toolid(data['metrics']['tool_id']))
row.append(data['metrics']['state'])
for e in _get_metrics(data['metrics']['job_metrics']):
row.append(e)
return row


def make_model_row(data: dict):
metrics = data['job_metrics']
metrics = data['metrics']
row = []
row.append(metrics['id'])
tool_id = metrics['tool_id']
Expand Down

0 comments on commit 14c7e2f

Please sign in to comment.