Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pröpper committed Oct 11, 2012
1 parent c782bb0 commit c16ad3d
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 24 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include spykeviewer/plugins *.py
10 changes: 1 addition & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,4 @@ analyzing and visualizing electrophysiological datasets. Based on the
wide variety of data formats.

For more information, see the documentation at
http://spyke-viewer.readthedocs.org

Dependencies
============
* A least Python 2.7
* spykeutils
* guiqwt
* guidata
* PyTables
http://spyke-viewer.readthedocs.org
8 changes: 6 additions & 2 deletions doc/source/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

Extending Spyke Viewer
======================
How to make it do more!
There are two ways of extending Spyke Viewer: Analysis plugins and IO plugins.
Both are created by placing a Python file with an appropriate class into one
of the plugin directories defined in the :ref:`settings`. This section
describes how to create them.

Analysis plugins
----------------
Creating a plugin by example. Links to spykeutils docs.

Guide with example coming soon...

.. _ioplugins:

Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def find_version():
version = find_version()

plugin_files = []
for path, dirs, files in os.walk('plugins'):
plugin_files.append((path, [os.path.join(path,f) for f in files]))
for path, dirs, files in os.walk(os.path.join('spykeviewer', 'plugins')):
p = path.split(os.sep, 1)[1]
plugin_files.extend([os.path.join(p,f) for f in files])

setup(
name="spykeviewer",
Expand All @@ -43,7 +44,7 @@ def find_version():
'gui_scripts':
['spyke-viewer = spykeviewer.start:main']
},
data_files = plugin_files,
package_data = {'': plugin_files},
zip_safe=False,
author='Robert Pröpper',
maintainer='Robert Pröpper',
Expand Down
2 changes: 1 addition & 1 deletion spykeviewer/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.1'
__version__ = '0.2.0'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 12 additions & 9 deletions spykeviewer/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ def restore_state(self):
module_path = os.path.dirname(sys.executable)
else:
file_path = os.path.abspath(os.path.dirname(__file__))
module_path = os.path.dirname(os.path.dirname(file_path))
module_path = os.path.dirname(file_path)
plugin_path = os.path.join(module_path, 'plugins')

if os.path.isdir(plugin_path):
self.plugin_paths.append(plugin_path)
else:
Expand Down Expand Up @@ -257,14 +258,16 @@ def on_actionExit_triggered(self):

@pyqtSignature("")
def on_actionAbout_triggered(self):
QMessageBox.about(self, u'About Spyke Viewer',
u'Spyke Viewer is an application for navigating, ' +
u'analyzing and visualizing electrophysiological datasets.\n\n' +
u'Copyright 2012 \xa9 Robert Pr\xf6pper\n' +
u'Neural Information Processing Group\n' +
u'TU Berlin, Germany\n\n' +
u'Licensed under the terms of the BSD license.\n\n' +
u'Icons from the Crystal Project ' +
from .. import __version__

QMessageBox.about(self, u'About Spyke Viewer ' + __version__,
u'Spyke Viewer is an application for navigating, '
u'analyzing and visualizing electrophysiological datasets.\n\n'
u'Copyright 2012 \xa9 Robert Pr\xf6pper\n'
u'Neural Information Processing Group\n'
u'TU Berlin, Germany\n\n'
u'Licensed under the terms of the BSD license.\n\n'
u'Icons from the Crystal Project '
u'(\xa9 2006-2007 Everaldo Coelho)')

@pyqtSignature("")
Expand Down

0 comments on commit c16ad3d

Please sign in to comment.