Skip to content

Commit

Permalink
fix: fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartmillan committed Aug 2, 2022
1 parent 2bbbf3e commit ac72bf4
Show file tree
Hide file tree
Showing 13 changed files with 27,555 additions and 27,554 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

for file, ann in findfiles(f"{getcwd()}/tests/data/dataset/sample3"):
result = Variant(file, ann)
for line in result.read():
for line in result.read(where="REF != 'A',REF != 'G'"):
print(f"Line in a dict: {line}")
break
3 changes: 3 additions & 0 deletions openvariant/find_files/find_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def _get_annotation(file_path, annotation):
def _scan_files(base_path: str, annotation: Annotation, fix: bool):
"""Recursive exploration from a base path"""
if isdir(base_path):
if not fix:
for annotation_file in glob.iglob(join(base_path, "*.{}".format(ANNOTATION_EXTENSION))):
annotation = Annotation(annotation_file)
for file_name in listdir(base_path):
file_path = join(base_path, file_name)
try:
Expand Down
Loading

0 comments on commit ac72bf4

Please sign in to comment.