Skip to content

Commit

Permalink
STY: Changes for new black version
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Sep 13, 2024
1 parent f5e3b92 commit bdf2516
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fissa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def save_prep(self, destination=None):
field: getattr(self, field)
for field in fields
if getattr(self, field) is not None
}
},
)

def separate(self, redo_prep=False, redo_sep=False):
Expand Down Expand Up @@ -1541,7 +1541,7 @@ def save_separated(self, destination=None):
field: getattr(self, field)
for field in fields
if getattr(self, field) is not None
}
},
)

def calc_deltaf(self, freq, use_raw_f0=True, across_trials=True):
Expand Down Expand Up @@ -1874,7 +1874,7 @@ def run_fissa(
return_deltaf=False,
deltaf_across_trials=True,
export_to_matfile=False,
**kwargs
**kwargs,
):
r"""
Function-based interface to run FISSA on an experiment.
Expand Down
2 changes: 1 addition & 1 deletion fissa/neuropil.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def separate(
print("{}Trying a new random state.".format(prefix))
# Change to a new random_state
if random_state is not None:
random_state = (random_state + 1) % 2 ** 32
random_state = (random_state + 1) % 2**32

if estimator.n_iter_ == max_iter:
if verbosity >= 1:
Expand Down
1 change: 1 addition & 0 deletions fissa/tests/test_polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

# Unit tests for sima/ROI.py
# Tests follow conventions for NumPy/SciPy available at
# https://github.com/numpy/numpy/blob/master/doc/TESTS.rst.txt
Expand Down

0 comments on commit bdf2516

Please sign in to comment.