Skip to content

Commit 6e14fc2

Browse files
authored
Merge pull request #173 from fooof-tools/mod
Small module related updates
2 parents 2ac88b4 + 6c841db commit 6e14fc2

File tree

3 files changed

+11
-42
lines changed

3 files changed

+11
-42
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
numpy
2-
scipy >= 0.19
2+
scipy>=0.19

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,22 @@
44
from setuptools import setup, find_packages
55

66
# Get the current version number from inside the module
7-
with open(os.path.join('fooof', 'version.py')) as vf:
8-
exec(vf.read())
7+
with open(os.path.join('fooof', 'version.py')) as version_file:
8+
exec(version_file.read())
99

10-
# Copy in long description.
11-
# Note: this is a partial copy from the README
12-
# Only update here in coordination with the README, to keep things consistent.
13-
LONG_DESCRIPTION = \
14-
"""
15-
FOOOF: Fitting Oscillations & One-Over F
10+
# Load the long description from the README
11+
with open('README.rst') as readme_file:
12+
long_description = readme_file.read()
1613

17-
FOOOF is a fast, efficient, physiologically-informed model to parameterize neural
18-
power spectra, characterizing both the aperiodic & periodic components.
19-
20-
The model conceives of the neural power spectrum as consisting of two distinct components:
21-
22-
1) an aperiodic component, reflecting 1/f like characteristics, modeled with an exponential fit, with
23-
2) band-limited peaks, reflecting putative oscillations, and modeled as Gaussians
24-
25-
The module includes:
26-
27-
- Code for applying models to parameterize neural power spectra
28-
- Plotting functions for visualizing power spectra, model fits, and model parameters
29-
- Analysis functions for examining model components and parameters
30-
- Utilities for Input/Output management, data management and analysis reports
31-
- Simulation code for simulating power spectra for methods testing
32-
33-
More details are available on the documentation site.
34-
35-
Documentation: https://fooof-tools.github.io/
36-
37-
If you use this code in your project, please cite:
38-
39-
Haller M, Donoghue T, Peterson E, Varma P, Sebastian P, Gao R, Noto T, Knight RT, Shestyuk A,
40-
Voytek B (2018) Parameterizing Neural Power Spectra. bioRxiv, 299859. doi: https://doi.org/10.1101/299859
41-
42-
A full description of the method and approach is available in this paper.
43-
44-
Direct Paper Link: https://www.biorxiv.org/content/10.1101/299859v1
45-
"""
14+
# Load the required dependencies from the requirements file
15+
with open("requirements.txt") as requirements_file:
16+
install_requires = requirements_file.read().splitlines()
4617

4718
setup(
4819
name = 'fooof',
4920
version = __version__,
5021
description = 'fitting oscillations & one-over f',
51-
long_description = LONG_DESCRIPTION,
22+
long_description = long_description,
5223
python_requires = '>=3.5',
5324
author = 'The Voytek Lab',
5425
author_email = 'voyteklab@gmail.com',
@@ -80,7 +51,7 @@
8051
},
8152
download_url = 'https://github.com/fooof-tools/fooof/releases',
8253
keywords = ['neuroscience', 'neural oscillations', 'power spectra', '1/f', 'electrophysiology'],
83-
install_requires = ['numpy', 'scipy>=0.19.0'],
54+
install_requires = install_requires,
8455
tests_require = ['pytest'],
8556
extras_require = {
8657
'plot' : ['matplotlib'],

0 commit comments

Comments
 (0)