renamed module
This commit is contained in:
@@ -5,8 +5,8 @@ from pathlib import Path
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb, get_visual_communication
|
from shared.docstore import connect_mongodb, get_visual_communication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ from pathlib import Path
|
|||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.mongodb.classes import VisualCommunication
|
from shared.docstore.classes import VisualCommunication
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# prepare env vars
|
# prepare env vars
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ from dotenv import load_dotenv
|
|||||||
from pymongo.errors import DuplicateKeyError
|
from pymongo.errors import DuplicateKeyError
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ from dotenv import load_dotenv
|
|||||||
from pymongo.errors import DuplicateKeyError
|
from pymongo.errors import DuplicateKeyError
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from shared.mongodb.classes import ModelData
|
from shared.docstore.classes import ModelData
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# instantiate data object
|
# instantiate data object
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ from pathlib import Path
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb, upsert_prediction
|
from shared.docstore import connect_mongodb, upsert_prediction
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.mongodb import connect_mongodb, count_documents
|
from shared.docstore import connect_mongodb, count_documents
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# prepare env vars
|
# prepare env vars
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
from shared.mongodb import connect_mongodb, count_documents
|
from shared.docstore import connect_mongodb, count_documents
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# prepare env vars
|
# prepare env vars
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ from tqdm import tqdm
|
|||||||
from utils import DEVICE, VCDADataset, load_model
|
from utils import DEVICE, VCDADataset, load_model
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb.classes import ModelData
|
from shared.docstore.classes import ModelData
|
||||||
from shared.utils import setup_logging
|
from shared.utils import setup_logging
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from torch import nn
|
from torch import nn
|
||||||
|
|
||||||
from shared.mongodb.src.classes import ModelData
|
from shared.docstore.src.classes import ModelData
|
||||||
|
|
||||||
from .angle import AngleTail
|
from .angle import AngleTail
|
||||||
from .contact import ContactTail
|
from .contact import ContactTail
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ from dotenv import load_dotenv
|
|||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
from web_ui.src.main import NECESSARY_ENV_VAR_LIST
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -119,7 +119,7 @@ module = "models.*"
|
|||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
module = "shared.mongodb.*"
|
module = "shared.docstore.*"
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ from pydantic import BaseModel, ConfigDict
|
|||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb.src.classes import ModelData
|
from shared.docstore.src.classes import ModelData
|
||||||
|
|
||||||
|
|
||||||
class VisualCommunication(BaseModel):
|
class VisualCommunication(BaseModel):
|
||||||
+2
-2
@@ -6,8 +6,8 @@ import logging
|
|||||||
|
|
||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
from shared.mongodb.src.exceptions import NoDocumentFoundException
|
from shared.docstore.src.exceptions import NoDocumentFoundException
|
||||||
|
|
||||||
|
|
||||||
def get_visual_communication(
|
def get_visual_communication(
|
||||||
@@ -4,7 +4,7 @@ import logging
|
|||||||
|
|
||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.mongodb.src.classes import ModelData
|
from shared.docstore.src.classes import ModelData
|
||||||
|
|
||||||
|
|
||||||
def upsert_annotation(
|
def upsert_annotation(
|
||||||
@@ -4,7 +4,7 @@ import logging
|
|||||||
|
|
||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.mongodb.src.classes import ModelData
|
from shared.docstore.src.classes import ModelData
|
||||||
|
|
||||||
|
|
||||||
def upsert_prediction(
|
def upsert_prediction(
|
||||||
+1
-1
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.mongodb.src.classes import VisualCommunication
|
from shared.docstore.src.classes import VisualCommunication
|
||||||
|
|
||||||
|
|
||||||
def upsert_visual_communication(
|
def upsert_visual_communication(
|
||||||
@@ -12,9 +12,9 @@ from pydantic import ValidationError
|
|||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import count_documents, get_visual_communication, upsert_annotation
|
from shared.docstore import count_documents, get_visual_communication, upsert_annotation
|
||||||
from shared.mongodb.src.classes import ModelData, VisualCommunication
|
from shared.docstore.src.classes import ModelData, VisualCommunication
|
||||||
from shared.mongodb.src.exceptions import NoDocumentFoundException
|
from shared.docstore.src.exceptions import NoDocumentFoundException
|
||||||
|
|
||||||
from .layout import app_layout
|
from .layout import app_layout
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
import dash_mantine_components as dmc
|
import dash_mantine_components as dmc
|
||||||
from dash import dcc, html
|
from dash import dcc, html
|
||||||
|
|
||||||
from shared.mongodb.classes import (
|
from shared.docstore.classes import (
|
||||||
AngleData,
|
AngleData,
|
||||||
ContactData,
|
ContactData,
|
||||||
DistanceData,
|
DistanceData,
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from shared.datastore import Datastore
|
from shared.datastore import Datastore
|
||||||
from shared.mongodb import connect_mongodb
|
from shared.docstore import connect_mongodb
|
||||||
from shared.utils import check_env, setup_logging
|
from shared.utils import check_env, setup_logging
|
||||||
|
|
||||||
from .app import init_app
|
from .app import init_app
|
||||||
|
|||||||
Reference in New Issue
Block a user