Skip to content

Commit

Permalink
lints from updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Apr 8, 2024
1 parent fa6298a commit 83ae693
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 26 deletions.
6 changes: 3 additions & 3 deletions specparam/objs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from specparam.data import ModelRunModes
from specparam.core.utils import unlog
from specparam.core.items import OBJ_DESC
from specparam.objs.fit import BaseFit, BaseFit2D, BaseFit2DT
from specparam.objs.data import BaseData, BaseData2D, BaseData2DT

from specparam.core.errors import NoDataError
from specparam.core.io import save_model, load_json
from specparam.core.io import save_group, load_jsonlines
from specparam.core.modutils import copy_doc_func_to_method
from specparam.objs.fit import BaseFit, BaseFit2D, BaseFit2DT
from specparam.objs.data import BaseData, BaseData2D, BaseData2DT

###################################################################################################
###################################################################################################
Expand Down
6 changes: 2 additions & 4 deletions specparam/objs/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Define base data objects."""

from functools import wraps

import numpy as np

from specparam.sim.gen import gen_freqs
Expand Down Expand Up @@ -315,10 +317,6 @@ def _reset_data(self, clear_freqs=False, clear_spectrum=False, clear_spectra=Fal
self.power_spectra = None


# FIGURE OUT WHERE TO PUT

from functools import wraps

def transpose_arg1(func):
"""Decorator function to transpose the 1th argument input to a function."""

Expand Down
2 changes: 1 addition & 1 deletion specparam/objs/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np

from specparam.objs import SpectralModel, SpectralTimeModel
from specparam.objs.group import _progress
from specparam.objs.fit import _progress
from specparam.plts.event import plot_event_model
from specparam.data.conversions import event_group_to_dict, event_group_to_dataframe, dict_to_df
from specparam.data.utils import get_group_params, get_results_by_row, flatten_results_dict
Expand Down
1 change: 1 addition & 0 deletions specparam/objs/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from specparam.core.utils import unlog
from specparam.core.funcs import infer_ap_func
from specparam.core.errors import NoModelError
from specparam.core.utils import check_inds, check_array_dim
from specparam.data import FitResults, ModelSettings
from specparam.data.conversions import group_to_dict
Expand Down
6 changes: 0 additions & 6 deletions specparam/objs/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
Methods without defined docstrings import docs at runtime, from aliased external functions.
"""

import numpy as np

from specparam.objs.base import BaseObject2D
from specparam.objs.model import SpectralModel
from specparam.objs.algorithm import SpectralFitAlgorithm
from specparam.plts.group import plot_group_model
from specparam.core.items import OBJ_DESC
from specparam.core.utils import check_inds
from specparam.core.errors import NoModelError
from specparam.core.reports import save_group_report
from specparam.core.strings import gen_group_results_str
from specparam.core.io import save_group, load_jsonlines
from specparam.core.modutils import (copy_doc_func_to_method,
docs_get_section, replace_docstring_sections)
from specparam.data.conversions import group_to_dataframe
Expand Down
3 changes: 0 additions & 3 deletions specparam/objs/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

from specparam.objs.base import BaseObject
from specparam.objs.algorithm import SpectralFitAlgorithm

from specparam.core.info import get_indices
from specparam.core.io import save_model, load_json
from specparam.core.reports import save_model_report
from specparam.core.modutils import copy_doc_func_to_method
from specparam.core.errors import NoModelError
Expand Down
13 changes: 4 additions & 9 deletions specparam/objs/time.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
"""Time model object and associated code for fitting the model to spectrograms."""

import numpy as np

from specparam.objs import SpectralModel, SpectralGroupModel
from specparam.objs import SpectralModel
from specparam.objs.base import BaseObject2DT
from specparam.objs.algorithm import SpectralFitAlgorithm
from specparam.data.conversions import group_to_dataframe, dict_to_df
from specparam.plts.time import plot_time_model
from specparam.data.conversions import group_to_dict, group_to_dataframe, dict_to_df
from specparam.data.utils import get_results_by_ind
from specparam.core.utils import check_inds
from specparam.core.reports import save_time_report
from specparam.core.modutils import (copy_doc_func_to_method, docs_get_section,
replace_docstring_sections)
from specparam.core.strings import gen_time_results_str

from specparam.objs.base import BaseObject2DT
from specparam.objs.algorithm import SpectralFitAlgorithm

###################################################################################################
###################################################################################################

Expand Down

0 comments on commit 83ae693

Please sign in to comment.