Skip to content

Commit

Permalink
dump dict to json string for pephub reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Sep 9, 2024
1 parent ad98d8e commit d2697d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/ref_genome_validating/validate_genome.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,14 @@ def main():
for key, values in i.items():
all_vals.update({key: values})

psm.report(record_identifier=rid, values=all_vals)
# Report to file backend
psm2.report(record_identifier=rid, values=all_vals)

# Convert to json string before reporting to pephub
for key, value in all_vals.items():
all_vals[key] = str(json.dumps(value))
psm.report(record_identifier=rid, values=all_vals)

return


Expand Down

0 comments on commit d2697d1

Please sign in to comment.