Skip to content

Commit f603b53

Browse files
committed
fix copies=0 treated as falsy in CnvTranslator
1 parent b573565 commit f603b53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ga4gh/vrs/extras/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def _from_hgvs(
573573
)
574574

575575
copies = kwargs.get("copies")
576-
if copies:
576+
if copies is not None:
577577
cnv = models.CopyNumberCount(location=location, copies=copies)
578578
else:
579579
copy_change = kwargs.get("copy_change")

0 commit comments

Comments
 (0)