From b4ca9bf907c18ecd5786e2890e8727c25de6921c Mon Sep 17 00:00:00 2001 From: WannaGetDSJobInSanFrancisco <65780758+HireTheHero@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:51:14 +0900 Subject: [PATCH] Avoiding circular import by renaming pandas.py --- pyphi/models/mechanism.py | 2 +- pyphi/models/{pandas.py => pyphi_pandas.py} | 0 pyphi/models/subsystem.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename pyphi/models/{pandas.py => pyphi_pandas.py} (100%) diff --git a/pyphi/models/mechanism.py b/pyphi/models/mechanism.py index 883253076..b77cb72e1 100644 --- a/pyphi/models/mechanism.py +++ b/pyphi/models/mechanism.py @@ -26,7 +26,7 @@ from ..registry import Registry from ..warnings import warn_about_tie_serialization from . import cmp, fmt -from .pandas import ToDictFromExplicitAttrsMixin, ToDictMixin, ToPandasMixin +from .pyphi_pandas import ToDictFromExplicitAttrsMixin, ToDictMixin, ToPandasMixin @total_ordering diff --git a/pyphi/models/pandas.py b/pyphi/models/pyphi_pandas.py similarity index 100% rename from pyphi/models/pandas.py rename to pyphi/models/pyphi_pandas.py diff --git a/pyphi/models/subsystem.py b/pyphi/models/subsystem.py index 653130cff..28bcb5f0d 100644 --- a/pyphi/models/subsystem.py +++ b/pyphi/models/subsystem.py @@ -16,7 +16,7 @@ from ..conf import fallback from . import cmp, fmt from .mechanism import Concept, StateSpecification -from .pandas import ToDictMixin, ToPandasMixin +from .pyphi_pandas import ToDictMixin, ToPandasMixin _sia_attributes = ["phi", "ces", "partitioned_ces", "subsystem", "cut_subsystem"]