A streamlined workflow and GUI for real-time species identification and pathogen characterization via nanopore sequencing data. Engineered for precision, speed, and user-friendliness, with offline functionality post-initialization.
GNU General Public License v3.0
14
stars
2
forks
source link
Optimize timed_senser to Accept Pre-loaded Config #46
This PR optimizes the timed_senser function to accept a pre-loaded configuration. The changes aim to eliminate redundant loading of the same config file and improve the function's performance.
Changes
Removed the import of load_config from nanometa_live/helpers/pipeline_utils.py.
Updated timed_senser to take two parameters: config_file_path and config_contents.
Removed the internal call to load_config.
Updated the docstring to reflect new usage.
Adjusted all calls to timed_senser in nanometa_backend.py to pass the pre-loaded configuration.
Summary
This PR optimizes the
timed_senser
function to accept a pre-loaded configuration. The changes aim to eliminate redundant loading of the same config file and improve the function's performance.Changes
load_config
fromnanometa_live/helpers/pipeline_utils.py
.timed_senser
to take two parameters:config_file_path
andconfig_contents
.load_config
.timed_senser
innanometa_backend.py
to pass the pre-loaded configuration.