Skip to content
Snippets Groups Projects
Commit 9f789554 authored by nfontrod's avatar nfontrod
Browse files

src/db_utils/config.py: add cpu variable. src/db_utils/__main__.py: add the...

src/db_utils/config.py: add cpu variable. src/db_utils/__main__.py: add the function to fill frequency table
parent 66a19355
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ def launcher(logging_level: str = "INFO"): ...@@ -28,7 +28,7 @@ def launcher(logging_level: str = "INFO"):
logging.info('Filling splicing lore tables') logging.info('Filling splicing lore tables')
fill_splicing_lore_data('DISABLE') fill_splicing_lore_data('DISABLE')
logging.info('Filling frequency tables') logging.info('Filling frequency tables')
fill_frequency_tables('DISABLE') fill_frequency_tables(Config.cpu, 'DISABLE')
launcher(logging_level="DEBUG") launcher(logging_level="DEBUG")
...@@ -7,12 +7,14 @@ Description: Configuration class ...@@ -7,12 +7,14 @@ Description: Configuration class
""" """
from pathlib import Path from pathlib import Path
import multiprocessing as mp
class Config: class Config:
""" """
A class containing every parameters used in the submodule db_utils A class containing every parameters used in the submodule db_utils
""" """
cpu = mp.cpu_count()
data = Path(__file__).parents[2] / 'data' data = Path(__file__).parents[2] / 'data'
results = Path(__file__).parents[2] / "results" results = Path(__file__).parents[2] / "results"
db_file = results / 'chia_pet_database.db' db_file = results / 'chia_pet_database.db'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment