Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
berombau committed Mar 26, 2024
1 parent 9d9bf56 commit 9f84d8f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
5 changes: 2 additions & 3 deletions src/FlowSOM/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
from scipy.stats import median_abs_deviation
from sklearn.base import check_is_fitted

from flowsom.io import read_csv, read_FCS
from flowsom.models.flowsom_estimator import FlowSOMEstimator

from .io import read_csv, read_FCS
from .tl import get_channels, get_markers
from flowsom.tl import get_channels, get_markers


class FlowSOM:
Expand Down
12 changes: 6 additions & 6 deletions src/FlowSOM/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from flowsom.models._som import SOM, map_data_to_codes
from flowsom.models.base_cluster_estimator import BaseClusterEstimator
from flowsom.models.base_flowsom_estimator import BaseFlowSOMEstimator
from flowsom.models.consensus_cluster import ConsensusCluster
from flowsom.models.flowsom_estimator import FlowSOMEstimator
from flowsom.models.som_estimator import SOMEstimator
from ._som import SOM, map_data_to_codes # isort:skip
from .base_cluster_estimator import BaseClusterEstimator # isort:skip
from .som_estimator import SOMEstimator # isort:skip
from .base_flowsom_estimator import BaseFlowSOMEstimator # isort:skip
from .consensus_cluster import ConsensusCluster
from .flowsom_estimator import FlowSOMEstimator
2 changes: 1 addition & 1 deletion src/FlowSOM/models/base_flowsom_estimator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from sklearn.utils.validation import check_is_fitted

from flowsom.models import BaseClusterEstimator
from . import BaseClusterEstimator


class BaseFlowSOMEstimator(BaseClusterEstimator):
Expand Down
2 changes: 1 addition & 1 deletion src/FlowSOM/models/consensus_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import numpy as np
from sklearn.cluster import AgglomerativeClustering

from flowsom.models import BaseClusterEstimator
from . import BaseClusterEstimator


class ConsensusCluster(BaseClusterEstimator):
Expand Down
3 changes: 1 addition & 2 deletions src/FlowSOM/models/flowsom_estimator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from flowsom.models import ConsensusCluster, SOMEstimator
from flowsom.models.base_flowsom_estimator import BaseFlowSOMEstimator
from . import BaseFlowSOMEstimator, ConsensusCluster, SOMEstimator


class FlowSOMEstimator(BaseFlowSOMEstimator):
Expand Down
2 changes: 1 addition & 1 deletion src/FlowSOM/models/som_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from scipy.spatial.distance import cdist, pdist, squareform
from sklearn.utils.validation import check_is_fitted

from flowsom.models import SOM, BaseClusterEstimator, map_data_to_codes
from . import SOM, BaseClusterEstimator, map_data_to_codes


class SOMEstimator(BaseClusterEstimator):
Expand Down

0 comments on commit 9f84d8f

Please sign in to comment.