Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Dec 9, 2024
1 parent 5c14d29 commit 7f26b4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions preprocessing/dummy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class Sequence:
accession: int
version: int
data: dict
errors: Optional[List[ProcessingAnnotation]] = field(default_factory=list[ProcessingAnnotation])
warnings: Optional[List[ProcessingAnnotation]] = field(
errors: list[ProcessingAnnotation] = field(default_factory=list[ProcessingAnnotation])
warnings: list[ProcessingAnnotation] = field(
default_factory=list[ProcessingAnnotation]
)

Expand Down Expand Up @@ -139,6 +139,8 @@ def process(unprocessed: List[Sequence]) -> List[Sequence]:
sequence.version,
{"metadata": metadata, **mock_sequences},
)
updated_sequence.warnings = []
updated_sequence.errors = []

disable_randomly = randomWarnError and random.choice([True, True, False])
if addErrors and not disable_randomly:
Expand Down

0 comments on commit 7f26b4c

Please sign in to comment.