From bfdc8f113e837532601cf700b37cb05118737a52 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:26:33 +0000 Subject: [PATCH 1/6] feat: Updated openoligo/scripts/server.py --- openoligo/scripts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openoligo/scripts/server.py b/openoligo/scripts/server.py index 6ae0209..13e2426 100644 --- a/openoligo/scripts/server.py +++ b/openoligo/scripts/server.py @@ -176,7 +176,7 @@ async def update_a_synthesis_task( if sequence is not None: try: - seq_validator = ValidSeq() + # seq_validator(sequence) task.sequence = sequence # type: ignore except ValidationError as exc: From 1dcac5eefc5de0b0dd221a9bb2d949ce8c1801a0 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:26:54 +0000 Subject: [PATCH 2/6] feat: Updated openoligo/api/models.py --- openoligo/api/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openoligo/api/models.py b/openoligo/api/models.py index 658957b..1341eab 100644 --- a/openoligo/api/models.py +++ b/openoligo/api/models.py @@ -8,6 +8,8 @@ from typing import Optional from pydantic import BaseModel +from pydantic import BaseModel +# Existing import from tortoise import fields from tortoise.contrib.pydantic import pydantic_model_creator from tortoise.exceptions import ValidationError From d61c5286c365b5c81ced711910d076afca87c9c2 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:27:07 +0000 Subject: [PATCH 3/6] feat: Updated openoligo/api/models.py --- openoligo/api/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openoligo/api/models.py b/openoligo/api/models.py index 1341eab..8edf7ba 100644 --- a/openoligo/api/models.py +++ b/openoligo/api/models.py @@ -49,6 +49,7 @@ class ReactantType(str, Enum): class InstrumentHealth(str, Enum): """Instrument health status""" + """Instrument health status""" OPERATIONAL = "Operational" DEGRADED = "Degraded" From 6a0df1038a63316ad616d68b04d039b09550b3a9 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:27:21 +0000 Subject: [PATCH 4/6] feat: Updated openoligo/api/models.py --- openoligo/api/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openoligo/api/models.py b/openoligo/api/models.py index 8edf7ba..0254e94 100644 --- a/openoligo/api/models.py +++ b/openoligo/api/models.py @@ -200,6 +200,12 @@ class SynthesisTask(Model): ) created_at = fields.DatetimeField(auto_now_add=True) started_at = fields.DatetimeField(null=True) + def public_method_one(self): + pass + + def public_method_two(self): + pass + completed_at = fields.DatetimeField(null=True) log_file = fields.TextField( From bd3147b9ae55798d7f3a43a4b3e8856f7a9d3bf1 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:27:50 +0000 Subject: [PATCH 5/6] feat: Updated openoligo/api/models.py --- openoligo/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openoligo/api/models.py b/openoligo/api/models.py index 0254e94..aaada6c 100644 --- a/openoligo/api/models.py +++ b/openoligo/api/models.py @@ -171,7 +171,7 @@ class Config: } -def json_to_seq(raw_json: str | bytes) -> NucleotidesModel: +def json_to_seq(raw_json: 'Union[str, bytes]') -> NucleotidesModel: """Convert json to a Nucleotide[]""" seq: NucleotidesModel = NucleotidesModel.parse_raw(raw_json) return seq From 97be5a26f8c23681bf64147351ebeefd42825ac8 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:28:03 +0000 Subject: [PATCH 6/6] feat: Updated openoligo/api/models.py --- openoligo/api/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openoligo/api/models.py b/openoligo/api/models.py index aaada6c..72e8bbd 100644 --- a/openoligo/api/models.py +++ b/openoligo/api/models.py @@ -1,7 +1,7 @@ """ Tortoise ORM Models for the OpenOligo API """ -import json + import re from dataclasses import dataclass from enum import Enum @@ -23,6 +23,7 @@ ) from openoligo.seq import Seq +import json class TaskStatus(str, Enum):