Skip to content

Commit

Permalink
Merge pull request NeuralEnsemble#1179 from JuliaSprenger/new_docs_enh
Browse files Browse the repository at this point in the history
Further documentation improvements
  • Loading branch information
apdavison authored Apr 3, 2023
2 parents f434435 + aa2fbcf commit e42e84d
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 141 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,11 @@ neo/test/io/neurosharemergeio.py
files_for_testing_neo
/venv
/neo/test/resources
doc/source/examples
doc/examples
doc/*.abf
doc/*.png
doc/*.plx
doc/*.nev
doc/*.ns5
doc/*.nix
doc/*.nwb
2 changes: 1 addition & 1 deletion doc/source/bug_reports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Reporting bugs, requesting new features
=======================================

If you find a bug, unclear documentation, or would like to add a new feature to Neo,
please go to https://github.com/NeuralEnsemble/PyNN/issues/.
please go to https://github.com/NeuralEnsemble/python-neo/issues/.


Searching the issue tracker
Expand Down
9 changes: 5 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,16 @@
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme = 'default'
html_theme = 'sphinxdoc'
# html_theme = 'sphinxdoc'
# html_theme = 'haiku'
# html_theme = 'scrolls'
# html_theme = 'agogo'
html_theme = 'alabaster'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# html_theme_options = {}
html_theme_options = {'logo': 'neologo_transparent.png'}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand All @@ -133,13 +134,13 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = 'images/neologo_light.png'
# html_logo = 'images/neologo_transparent.png'


# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
html_favicon = None
html_favicon = 'images/neologo_favicon.png'


# Add any paths that contain custom static files (such as style sheets) here,
Expand Down
Binary file added doc/source/images/neologo_favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/images/neologo_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/source/share_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ To quickly take a look at the data, let's plot it:
In [16]: plt.savefig("open_format_example_cc_step.png")


.. image:: open_format_example_cc_step.png
.. image:: ../open_format_example_cc_step.png


Now we've read the data into Neo, we're ready to write them to an open format.
Expand Down
130 changes: 0 additions & 130 deletions examples/igorio.ipynb

This file was deleted.

31 changes: 31 additions & 0 deletions examples/igorio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""
IgorProIO Demo
===========================
"""

import os
from urllib.request import urlretrieve
import zipfile
import matplotlib.pyplot as plt
from neo.io import get_io


# Downloaded from Human Brain Project Collaboratory
# Digital Reconstruction of Neocortical Microcircuitry (nmc-portal)
# http://microcircuits.epfl.ch/#/animal/8ecde7d1-b2d2-11e4-b949-6003088da632
datafile_url = "https://microcircuits.epfl.ch/data/released_data/B95.zip"
filename_zip = "B95.zip"
filename = 'grouped_ephys/B95/B95_Ch0_IDRest_107.ibw'
urlretrieve(datafile_url, filename_zip)

zip_ref = zipfile.ZipFile(filename_zip) # create zipfile object
zip_ref.extract(path='.', member=filename) # extract file to dir
zip_ref.close()


reader = get_io(filename)
signal = reader.read_analogsignal()
plt.plot(signal.times, signal)
plt.xlabel(signal.sampling_period.dimensionality)
plt.ylabel(signal.dimensionality)
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/plot_with_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import neo

distantfile = 'https://web.gin.g-node.org/NeuralEnsemble/ephy_testing_data/raw/master/plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'

urllib.request.urlretrieve(distantfile, localfile)

Expand Down
2 changes: 1 addition & 1 deletion examples/read_files_neo_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Plexon files
distantfile = url_repo + 'plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'
urllib.request.urlretrieve(distantfile, localfile)

# create a reader
Expand Down
4 changes: 2 additions & 2 deletions examples/read_files_neo_rawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Get Plexon files
distantfile = url_repo + 'plexon/File_plexon_3.plx'
localfile = './File_plexon_3.plx'
localfile = 'File_plexon_3.plx'
urllib.request.urlretrieve(distantfile, localfile)

# create a reader
Expand Down Expand Up @@ -56,7 +56,7 @@

# Read event timestamps and times (take another file)
distantfile = url_repo + 'plexon/File_plexon_2.plx'
localfile = './File_plexon_2.plx'
localfile = 'File_plexon_2.plx'
urllib.request.urlretrieve(distantfile, localfile)

# Count events per channel
Expand Down

0 comments on commit e42e84d

Please sign in to comment.