Skip to content

Commit

Permalink
Bad variable fixes ga4gh
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Feb 6, 2024
1 parent 4cadea1 commit ef4f83c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions truvari/region_vcf_iter.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def region_filter(vcf, tree, inside=True, with_region=False):
# region-less chromosome
if not inside:
try:
for entry in vcf.fetch(chrom):
yield ret_type(entry, chrom, cur_intv)
for cur_entry in vcf.fetch(chrom):
yield ret_type(cur_entry, chrom, cur_intv)
except ValueError:
pass # region on chromosome not in vcf
continue
Expand Down Expand Up @@ -230,5 +230,5 @@ def region_filter(vcf, tree, inside=True, with_region=False):

# if we finished the intervals first, need to flush the rest of the outside entries
if not inside:
for entry in cur_iter:
for cur_entry in cur_iter:
yield ret_type(cur_entry, chrom, cur_intv)

0 comments on commit ef4f83c

Please sign in to comment.