(temporary) Creates 2 databases, uses one of them in json file creation.#23
Draft
(temporary) Creates 2 databases, uses one of them in json file creation.#23
Conversation
Contributor
Author
KajusC
commented
May 21, 2025
| import sqlite3 | ||
| from typing import List, Dict, Any | ||
|
|
||
| BASE_OUTPUT_DIR = os.path.join(os.path.expanduser("~"), ".kath", "shared", "data", "blast_results") |
Contributor
Author
There was a problem hiding this comment.
Use constants from constants.py
|
|
||
| #++++++++++++++++++++++++++++++++++++++++++++++++ | ||
| # Takes in Json file and returns db file | ||
| db_file = json_to_db(result_file) |
Contributor
Author
There was a problem hiding this comment.
what for db_file is used? If you dont use for anything, dont apply for anything
| logger = logging.getLogger(__name__) | ||
|
|
||
| # Always use this database file | ||
| BASE_OUTPUT_DIR = os.path.join(os.path.expanduser("~"), ".kath", "shared", "data", "blast_results") |
Contributor
Author
There was a problem hiding this comment.
should be from constants.py
Comment on lines
+13
to
+15
| BASE_OUTPUT_DIR = os.path.join(os.path.expanduser("~"), ".kath", "shared", "data", "blast_results") | ||
| DB_FILENAME = "xml.db" | ||
| SQLITE_DB_FILE = os.path.join(BASE_OUTPUT_DIR, DB_FILENAME) |
| *.sln | ||
| *.sw? No newline at end of file | ||
| *.sw? | ||
| backend/src/services/remote/blast_service/align2.py |
Member
There was a problem hiding this comment.
Why is this here? Remove it
Comment on lines
+18
to
21
| from shared.constants import ( | ||
| PROGRAM_STORAGE_DIR_SHARED_BLAST, | ||
| PROGRAM_STORAGE_DIR_SHARED_DATA_FASTA, | ||
| ) |
Member
There was a problem hiding this comment.
Suggested change
| from shared.constants import ( | |
| PROGRAM_STORAGE_DIR_SHARED_BLAST, | |
| PROGRAM_STORAGE_DIR_SHARED_DATA_FASTA, | |
| ) | |
| from shared import PROGRAM_STORAGE_DIR_SHARED_BLAST, PROGRAM_STORAGE_DIR_SHARED_DATA_FASTA |
Comment on lines
+208
to
+209
| import os | ||
| import sqlite3 |
Member
There was a problem hiding this comment.
Imports at the middle of a file? Relocate to the top of the file where imports should be
|
|
||
| import os | ||
| import sqlite3 | ||
| from typing import List, Dict, Any |
Member
There was a problem hiding this comment.
Duplicate from typing, remove it
| from dotenv import load_dotenv | ||
|
|
||
| from src.utils.logger import get_logger | ||
| from utils.logger import get_logger |
Member
There was a problem hiding this comment.
Suggested change
| from utils.logger import get_logger | |
| from utils import get_logger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.