@@ -554,7 +554,7 @@ def get_model(self, ind, regenerate=True):
554554 The FitResults data loaded into a model object.
555555 """
556556
557- # TEMP IMPORT
557+ # Local import - avoid circular
558558 from specparam .objs .model import SpectralModel
559559
560560 # Initialize model object, with same settings, metadata, & check mode as current object
@@ -588,7 +588,7 @@ def get_group(self, inds):
588588 The requested selection of results data loaded into a new group model object.
589589 """
590590
591- # TEMP IMPORT
591+ # Local import - avoid circular
592592 from specparam .objs .group import SpectralGroupModel
593593
594594 # Initialize a new model object, with same settings as current object
@@ -690,12 +690,9 @@ def get_group(self, inds, output_type='time'):
690690 The requested selection of results data loaded into a new model object.
691691 """
692692
693- # TEMP IMPORT
694- from specparam .objs .time import SpectralTimeModel
695-
696693 if output_type == 'time' :
697694
698- # TEMP IMPORT
695+ # Local import - avoid circular
699696 from specparam .objs .time import SpectralTimeModel
700697
701698 # Initialize a new model object, with same settings as current object
@@ -874,7 +871,7 @@ def drop(self, drop_inds=None, window_inds=None):
874871 This method sets the model fits as null, and preserves the shape of the model fits.
875872 """
876873
877- # TEMP IMPORT
874+ # Local import - avoid circular
878875 from specparam .objs .model import SpectralModel
879876
880877 null_model = SpectralModel (** self .get_settings ()._asdict ()).get_results ()
@@ -966,7 +963,7 @@ def get_group(self, event_inds, window_inds, output_type='event'):
966963 The requested selection of results data loaded into a new model object.
967964 """
968965
969- # TEMP IMPORT
966+ # Local import - avoid circular
970967 from specparam .objs .event import SpectralTimeEventModel
971968
972969 # Check and convert indices encoding to list of int
0 commit comments