diff --git a/GANDLF/entrypoints/anonymizer.py b/GANDLF/entrypoints/anonymizer.py index 0bac57104..8adc7fcc8 100644 --- a/GANDLF/entrypoints/anonymizer.py +++ b/GANDLF/entrypoints/anonymizer.py @@ -12,7 +12,7 @@ from GANDLF.anonymize import run_anonymizer from GANDLF.cli import copyrightMessage from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils.gandlf_logging import logger_setup def _anonymize_images( diff --git a/GANDLF/entrypoints/config_generator.py b/GANDLF/entrypoints/config_generator.py index 7b0031336..861d80077 100644 --- a/GANDLF/entrypoints/config_generator.py +++ b/GANDLF/entrypoints/config_generator.py @@ -4,7 +4,7 @@ from GANDLF.cli import config_generator, copyrightMessage from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _generate_config(config: str, strategy: str, output: str): diff --git a/GANDLF/entrypoints/construct_csv.py b/GANDLF/entrypoints/construct_csv.py index 3e7514dcf..b8e7c2994 100644 --- a/GANDLF/entrypoints/construct_csv.py +++ b/GANDLF/entrypoints/construct_csv.py @@ -14,7 +14,7 @@ from GANDLF.utils import writeTrainingCSV from GANDLF.cli import copyrightMessage -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _construct_csv( diff --git a/GANDLF/entrypoints/deploy.py b/GANDLF/entrypoints/deploy.py index fdab44db4..f24a25cf1 100644 --- a/GANDLF/entrypoints/deploy.py +++ b/GANDLF/entrypoints/deploy.py @@ -16,7 +16,7 @@ copyrightMessage, ) from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _deploy( diff --git a/GANDLF/entrypoints/generate_metrics.py b/GANDLF/entrypoints/generate_metrics.py index 4cedea5ca..5d589a9f0 100644 --- a/GANDLF/entrypoints/generate_metrics.py +++ b/GANDLF/entrypoints/generate_metrics.py @@ -10,7 +10,7 @@ from GANDLF.cli import copyrightMessage from GANDLF.cli.generate_metrics import generate_metrics_dict from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _generate_metrics( diff --git a/GANDLF/entrypoints/optimize_model.py b/GANDLF/entrypoints/optimize_model.py index 8a21ec0cc..021f4d65f 100644 --- a/GANDLF/entrypoints/optimize_model.py +++ b/GANDLF/entrypoints/optimize_model.py @@ -9,7 +9,7 @@ from GANDLF.cli import copyrightMessage, post_training_model_optimization from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _optimize_model( diff --git a/GANDLF/entrypoints/patch_miner.py b/GANDLF/entrypoints/patch_miner.py index dd0f060eb..58b041129 100644 --- a/GANDLF/entrypoints/patch_miner.py +++ b/GANDLF/entrypoints/patch_miner.py @@ -10,7 +10,7 @@ from GANDLF.cli.patch_extraction import patch_extraction from GANDLF.cli import copyrightMessage from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _mine_patches(input_path: str, output_dir: str, config: Optional[str]): diff --git a/GANDLF/entrypoints/preprocess.py b/GANDLF/entrypoints/preprocess.py index 1cc19d7f6..0644b1d53 100644 --- a/GANDLF/entrypoints/preprocess.py +++ b/GANDLF/entrypoints/preprocess.py @@ -8,7 +8,7 @@ from deprecated import deprecated from GANDLF.cli import preprocess_and_save, copyrightMessage from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _preprocess( diff --git a/GANDLF/entrypoints/recover_config.py b/GANDLF/entrypoints/recover_config.py index db9922c16..6168b2ad1 100644 --- a/GANDLF/entrypoints/recover_config.py +++ b/GANDLF/entrypoints/recover_config.py @@ -9,7 +9,7 @@ from GANDLF.cli import copyrightMessage, recover_config from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _recover_config(model_dir: Optional[str], mlcube: bool, output_file: str): diff --git a/GANDLF/entrypoints/run.py b/GANDLF/entrypoints/run.py index 3577cd5d3..f974acdc1 100644 --- a/GANDLF/entrypoints/run.py +++ b/GANDLF/entrypoints/run.py @@ -14,7 +14,7 @@ from GANDLF import version from GANDLF.cli import main_run, copyrightMessage from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _run( diff --git a/GANDLF/entrypoints/split_csv.py b/GANDLF/entrypoints/split_csv.py index 5c6f1e29f..7261e5fe8 100644 --- a/GANDLF/entrypoints/split_csv.py +++ b/GANDLF/entrypoints/split_csv.py @@ -12,7 +12,7 @@ from GANDLF.cli import copyrightMessage, split_data_and_save_csvs from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _split_csv(input_csv: str, output_dir: str, config_path: Optional[str]): diff --git a/GANDLF/entrypoints/verify_install.py b/GANDLF/entrypoints/verify_install.py index c65da205c..970b78a6f 100644 --- a/GANDLF/entrypoints/verify_install.py +++ b/GANDLF/entrypoints/verify_install.py @@ -6,7 +6,7 @@ from deprecated import deprecated from GANDLF.entrypoints import append_copyright_to_help -from GANDLF.utils.logging import logger_setup +from GANDLF.utils import logger_setup def _verify_install(): diff --git a/GANDLF/utils/__init__.py b/GANDLF/utils/__init__.py index 6b105e490..4c2233153 100644 --- a/GANDLF/utils/__init__.py +++ b/GANDLF/utils/__init__.py @@ -68,4 +68,4 @@ ) from .data_splitter import split_data -from .logging import logger_setup, InfoOnlyFilter +from .gandlf_logging import logger_setup, InfoOnlyFilter