FOI-Bioinformatics / nanometa_live

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

Closed druvus closed 11 months ago

druvus commented 11 months ago

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

  1. Removed the import of load_config from nanometa_live/helpers/pipeline_utils.py.
  2. 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.
  3. Adjusted all calls to timed_senser in nanometa_backend.py to pass the pre-loaded configuration.