Skip to content

Commit

Permalink
fix: serialization of counter dict (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Dec 11, 2023
1 parent a459f77 commit 06caa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clinvar_data/class_by_freq.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def write_report(counts: dict, path_output: str):
with outputf:
for hgnc, counts in sorted(counts.items(), key=lambda x: int(x[0][5:])):
print(
json.dumps({"hgnc": hgnc, "counts": counts.model_dump(mode="json")}), # type: ignore
json.dumps({"hgnc": hgnc, "counts": counts}), # type: ignore
file=outputf,
)

Expand Down

0 comments on commit 06caa81

Please sign in to comment.