Skip to content

Commit fcff6c0

Browse files
author
Nalini Ganapati
committed
Rename variables
1 parent a58d1c7 commit fcff6c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/genomicsdb_query

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def print_fields(key, val):
122122
if "length" not in val:
123123
val["length"] = "1"
124124
for idx in range(len(val["vcf_field_class"])):
125-
field_val = val["vcf_field_class"][idx]
125+
field_class = val["vcf_field_class"][idx]
126126
if isinstance(val["type"], list):
127127
if idx < len(val["type"]):
128128
field_type = val["type"][idx]
@@ -148,7 +148,7 @@ def print_fields(key, val):
148148
field_type = "String"
149149
else:
150150
field_type = "Char"
151-
print(f"{key:<20} {field_val:10} {field_type:10} {field_length}")
151+
print(f"{key:<20} {field_class:10} {field_type:10} {field_length}")
152152

153153

154154
def parse_vidmap_json_and_print_fields(vidmap_file):
@@ -171,7 +171,7 @@ def parse_vidmap_json_and_print_fields(vidmap_file):
171171
}
172172
print("--")
173173
print("Abbreviations : ")
174-
{print(f" {k}: {v}") for k, v in abbreviations.items()}
174+
{print(f" {key}: {val}") for key, val in abbreviations.items()}
175175

176176

177177
def parse_vidmap_json_for_attributes(vidmap_file, attributes=None):

0 commit comments

Comments
 (0)