Skip to content

Commit

Permalink
Rename to eeglabio.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed Apr 1, 2021
1 parent 7ee07da commit 25f1b79
Show file tree
Hide file tree
Showing 14 changed files with 157 additions and 12 deletions.
144 changes: 144 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# PyCharm
.idea
.pytest_cache

### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# PyEEGLAB
# eeglabio

Python support for EEGLAB files
Python I/O support for EEGLAB files
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
event_name = Path(__file__).parent / "data" / 'test-eve.fif'


@pytest.mark.skip
def _get_data(preload=False):
"""Get data."""
raw = read_raw_fif(raw_fname, preload=preload, verbose='warning')
Expand All @@ -27,7 +28,7 @@ def test_export_set(tmpdir, preload):
raw, events = _get_data()[:2]
raw.load_data()
epochs = Epochs(raw, events, preload=preload)
temp_fname = op.join(str(tmpdir), 'test.set')
temp_fname = op.join(str(tmpdir), 'test_epochs.set')
export_set(epochs, temp_fname)
epochs_read = read_epochs_eeglab(temp_fname)
assert epochs.ch_names == epochs_read.ch_names
Expand Down
10 changes: 5 additions & 5 deletions pyeeglab/tests/test_raw.py → eeglabio/tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
from raw import export_set
from utils_tests import _TempDir

raw_fname = Path(__file__).parent / "data" / "test_raw.fif"

def test_export_set():

def test_export_set(tmpdir):
"""Test saving a Raw instance to EEGLAB's set format"""
fname = Path(__file__).parent / "data" / "test_raw.fif"
raw = read_raw_fif(fname)
raw = read_raw_fif(raw_fname)
raw.load_data()
tmpdir = _TempDir()
temp_fname = op.join(str(tmpdir), 'test.set')
temp_fname = op.join(str(tmpdir), 'test_raw.set')
export_set(raw, temp_fname)
raw_read = read_raw_eeglab(temp_fname, preload=True)
assert raw.ch_names == raw_read.ch_names
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
long_description = fh.read()

version = None
with open(os.path.join('pyeeglab', '_version.py'), 'r') as fid:
with open(os.path.join('eeglabio', '_version.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip("'")
Expand All @@ -17,11 +17,11 @@
requires = f.read().splitlines()

setuptools.setup(
name="pyeeglab",
name="eeglabio",
version=version,
author="Jack Zhang",
author_email="zhangmengyu10@gmail.com",
description="Python support for EEGLAB files",
description="Python I/O support for EEGLAB files",
license="BSD (3-clause)",
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -35,7 +35,7 @@
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
packages=setuptools.find_packages(),
packages=setuptools.find_packages(exclude=("*tests",)),
python_requires=">=3.6",
include_package_data=True,
install_requires=requires,
Expand Down

0 comments on commit 25f1b79

Please sign in to comment.