Skip to content

Commit

Permalink
Typo Fix: Unified Logger Usage (#209)
Browse files Browse the repository at this point in the history
* Unified logger usage

* fix typo

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
MooooCat and pre-commit-ci[bot] authored Jul 30, 2024
1 parent 16825af commit 2827bba
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion sdgx/cachers/disk_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sdgx.cachers.extension import hookimpl
from sdgx.data_connectors.base import DataConnector
from sdgx.exceptions import CacheError
from sdgx.log import logger
from sdgx.utils import logger


class DiskCache(Cacher):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from sdgx.data_connectors.manager import DataConnectorManager
from sdgx.data_exporters.manager import DataExporterManager
from sdgx.data_processors.manager import DataProcessorManager
from sdgx.log import logger
from sdgx.models.manager import ModelManager
from sdgx.synthesizer import Synthesizer
from sdgx.utils import logger


@click.command()
Expand Down
2 changes: 1 addition & 1 deletion sdgx/data_processors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from sdgx.data_models.metadata import Metadata
from sdgx.exceptions import SynthesizerProcessorError
from sdgx.log import logger
from sdgx.utils import logger


class DataProcessor:
Expand Down
3 changes: 1 addition & 2 deletions sdgx/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

from sdgx import models
from sdgx.exceptions import InitializationError, NotFoundError, RegisterError
from sdgx.log import logger
from sdgx.utils import Singleton
from sdgx.utils import Singleton, logger


class Manager(metaclass=Singleton):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/metrics/column/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pandas as pd

from sdgx.log import logger
from sdgx.utils import logger


class ColumnMetric(object):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/metrics/multi_table/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from sdgx.log import logger
from sdgx.utils import logger


class MultiTableMetric:
Expand Down
2 changes: 1 addition & 1 deletion sdgx/metrics/pair_column/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd

from sdgx.log import logger
from sdgx.utils import logger


class PairMetric(object):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/metrics/single_table/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd

from sdgx.log import logger
from sdgx.utils import logger


class SingleTableMetric:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from joblib import Parallel, delayed

from sdgx.data_loader import DataLoader
from sdgx.log import logger
from sdgx.models.components.optimize.ndarray_loader import NDArrayLoader
from sdgx.models.components.sdv_rdt.transformers import (
ClusterBasedNormalizer,
OneHotEncoder,
)
from sdgx.utils import logger

SpanInfo = namedtuple("SpanInfo", ["dim", "activation_fn"])
ColumnTransformInfo = namedtuple(
Expand Down
2 changes: 1 addition & 1 deletion sdgx/models/ml/single_table/ctgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

from sdgx.data_loader import DataLoader
from sdgx.data_models.metadata import Metadata
from sdgx.log import logger
from sdgx.models.components.optimize.ndarray_loader import NDArrayLoader
from sdgx.models.components.optimize.sdv_ctgan.data_sampler import DataSampler
from sdgx.models.components.optimize.sdv_ctgan.data_transformer import DataTransformer
Expand All @@ -31,6 +30,7 @@
from sdgx.models.components.sdv_ctgan.synthesizers.base import random_state
from sdgx.models.extension import hookimpl
from sdgx.models.ml.single_table.base import MLSynthesizerModel
from sdgx.utils import logger


class Discriminator(Module):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/models/statistics/multi_tables/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from sdgx.data_loader import DataLoader
from sdgx.data_models.combiner import MetadataCombiner
from sdgx.exceptions import SynthesizerInitError
from sdgx.log import logger
from sdgx.models.base import SynthesizerModel
from sdgx.utils import logger


class MultiTableSynthesizerModel(SynthesizerModel):
Expand Down
2 changes: 1 addition & 1 deletion sdgx/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
from sdgx.data_processors.base import DataProcessor
from sdgx.data_processors.manager import DataProcessorManager
from sdgx.exceptions import SynthesizerInitError, SynthesizerSampleError
from sdgx.log import logger
from sdgx.models.base import SynthesizerModel
from sdgx.models.manager import ModelManager
from sdgx.models.statistics.single_table.base import StatisticSynthesizerModel
from sdgx.utils import logger


class Synthesizer:
Expand Down

0 comments on commit 2827bba

Please sign in to comment.