Skip to content

Commit

Permalink
Merge pull request #59 from hubmapconsortium/phillips/fastq_bugfix
Browse files Browse the repository at this point in the history
fixing error caused by records_read failure
  • Loading branch information
gesinaphillips authored Jul 29, 2024
2 parents 3973b97 + 2fcd65c commit 2d69c56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ingest_validation_tests/fastq_validator_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,22 @@ def validate_fastq_file(self, fastq_file: Path) -> None:
return
except EOFError:
self.errors.append(self._format_error(f"EOF in FASTQ data file {fastq_file}."))
return
except Exception as e:
self.errors.append(
self._format_error(f"Unexpected error: {e} on data file {fastq_file}.")
)
return
self._file_record_counts[str(fastq_file)] = records_read

def validate_fastq_files_in_path(self, paths: List[Path], threads: int) -> None:
data_found_one = []
dirs_and_files = defaultdict(dict)
for path in paths:
dirs_and_files[path] = fastq_utils.collect_fastq_files_by_directory(path)
_log(f"Added files from {path} to dirs_and_files: {dirs_and_files}")
_log(
f"FASTQValidatorLogic: Added files from {path} to dirs_and_files: {dirs_and_files}"
)
file_list = []
with Manager() as manager:
# TODO: re-evaluate dicts/for loops
Expand Down

0 comments on commit 2d69c56

Please sign in to comment.