Skip to content

Commit 560ba17

Browse files
committed
small lint fixes
1 parent 93febaf commit 560ba17

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

fooof/core/modutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def get_docs_indices(docstring, sections=DOCSTRING_SECTIONS):
9999
Dictionary in which each key is a section label, and each value is the corresponding index.
100100
"""
101101

102-
inds = {label : None for label in DOCSTRING_SECTIONS}
102+
inds = {label : None for label in sections}
103103

104104
for ind, line in enumerate(docstring.split('\n')):
105-
for key, val in inds.items():
105+
for key in inds:
106106
if key in line:
107107
inds[key] = ind
108108

@@ -132,7 +132,7 @@ def docs_drop_param(docstring):
132132
ind = docstring.find(sep) + len(sep)
133133
front, back = docstring[:ind], docstring[ind:]
134134

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

138138
return front + back

fooof/objs/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def save_model_report(self, index, file_name, file_path=None, plt_log=False,
544544
"""
545545

546546
self.get_fooof(ind=index, regenerate=True).save_report(\
547-
file_name, file_path, plt_log, **plot_kwargs)
547+
file_name, file_path, plt_log, add_settings, **plot_kwargs)
548548

549549

550550
def to_df(self, peak_org):

fooof/plts/style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import matplotlib.pyplot as plt
77

88
from fooof.plts.settings import (AXIS_STYLE_ARGS, LINE_STYLE_ARGS, COLLECTION_STYLE_ARGS,
9-
CUSTOM_STYLE_ARGS, STYLE_ARGS, LABEL_SIZE, LEGEND_SIZE,
10-
LEGEND_LOC, TICK_LABELSIZE, TITLE_FONTSIZE)
9+
STYLE_ARGS, LABEL_SIZE, LEGEND_SIZE, LEGEND_LOC,
10+
TICK_LABELSIZE, TITLE_FONTSIZE)
1111

1212
###################################################################################################
1313
###################################################################################################

fooof/utils/download.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Functions and utilities for downloading example data for fooof."""
22

33
import os
4-
from pathlib import Path
54
from urllib.request import urlretrieve
65

76
import numpy as np

fooof/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.1.0rc0'
1+
__version__ = '1.1.0rc1'

0 commit comments

Comments
 (0)