Skip to content

Commit

Permalink
small lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Jul 21, 2023
1 parent 93febaf commit 560ba17
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions fooof/core/modutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def get_docs_indices(docstring, sections=DOCSTRING_SECTIONS):
Dictionary in which each key is a section label, and each value is the corresponding index.
"""

inds = {label : None for label in DOCSTRING_SECTIONS}
inds = {label : None for label in sections}

for ind, line in enumerate(docstring.split('\n')):
for key, val in inds.items():
for key in inds:
if key in line:
inds[key] = ind

Expand Down Expand Up @@ -132,7 +132,7 @@ def docs_drop_param(docstring):
ind = docstring.find(sep) + len(sep)
front, back = docstring[:ind], docstring[ind:]

for loop in range(2):
for _ in range(2):
back = back[back.find('\n')+1:]

return front + back
Expand Down
2 changes: 1 addition & 1 deletion fooof/objs/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def save_model_report(self, index, file_name, file_path=None, plt_log=False,
"""

self.get_fooof(ind=index, regenerate=True).save_report(\
file_name, file_path, plt_log, **plot_kwargs)
file_name, file_path, plt_log, add_settings, **plot_kwargs)


def to_df(self, peak_org):
Expand Down
4 changes: 2 additions & 2 deletions fooof/plts/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import matplotlib.pyplot as plt

from fooof.plts.settings import (AXIS_STYLE_ARGS, LINE_STYLE_ARGS, COLLECTION_STYLE_ARGS,
CUSTOM_STYLE_ARGS, STYLE_ARGS, LABEL_SIZE, LEGEND_SIZE,
LEGEND_LOC, TICK_LABELSIZE, TITLE_FONTSIZE)
STYLE_ARGS, LABEL_SIZE, LEGEND_SIZE, LEGEND_LOC,
TICK_LABELSIZE, TITLE_FONTSIZE)

###################################################################################################
###################################################################################################
Expand Down
1 change: 0 additions & 1 deletion fooof/utils/download.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Functions and utilities for downloading example data for fooof."""

import os
from pathlib import Path
from urllib.request import urlretrieve

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion fooof/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.0rc0'
__version__ = '1.1.0rc1'

0 comments on commit 560ba17

Please sign in to comment.