Skip to content

Commit 9635256

Browse files
committed
Provide expanded vrs 2 output
Workaround for issue where model_dump_json picks an IRI rather than a SequenceLocation to represent an Allele or Haplotype's location.
1 parent 088d8e9 commit 9635256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dcd_mapping/annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def save_mapped_output_json(
535535
_logger.info("Saving mapping output to %s", output_path)
536536
with output_path.open("w") as file:
537537
json.dump(
538-
json.loads(output.model_dump_json(exclude_unset=True, exclude_none=True)),
538+
output.model_dump(exclude_unset=True, exclude_none=True),
539539
file,
540540
indent=4,
541541
)

0 commit comments

Comments
 (0)