Skip to content

Commit d68e8d3

Browse files
committed
[docs] fixes and restructuring
1 parent 5551485 commit d68e8d3

File tree

8 files changed

+46
-76
lines changed

8 files changed

+46
-76
lines changed

docs/source/api/nixio.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
nixio package
2-
=============
1+
Internal API
2+
============
33

44
Subpackages
55
-----------

docs/source/examples/singleROI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ def plot_data(tag):
5151
ext = tuple(map(int, tag.extent))
5252
draw_rect(img_data, pos, ext)
5353
new_img = img.fromarray(img_data)
54+
55+
new_img.save("../images/single_roi.png")
5456
new_img.show()
5557

5658

5759
def main():
5860
img_data, channels = load_image()
5961
# create a new file overwriting any existing content
60-
file_name = 'single_roi.h5'
62+
file_name = 'single_roi.nix'
6163
f = nix.File.open(file_name, nix.FileMode.Overwrite)
6264

6365
# create a 'Block' that represents a grouping object. Here, the recording session.

docs/source/genindex.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. This file is a placeholder and will be replaced
2+
3+
Index
4+
#####

docs/source/getting_started.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
Tutorials
2-
=====================
2+
=========
33

44
This introduction guides through the *NIX* data model and shows how to use it with the `nixio python library <https://github.com/g-node/nixpy>`__.
55

6-
---------------
76

87
In the following we provide an introduction to the general concepts of the *NIX* data model, try to illustrate its design principles and provide code examples showing the usage of the `python <https://github.com/g-node/nixpy>`__ library for reading and writing *NIX* files.
98

109
Code examples use the python library but almost all functions have direct counterparts also in the `C++ library <https://github.com/g-node/nix>`__ or the language bindings to this for `Matlab <https://github.com/g-node/nix-mx>`__ and `java <https://github.com/g-node/nix-java>`__.
1110

12-
13-
List of tutorials
14-
-----------------
11+
---------------
1512

1613
Most code examples are standalone and you should be able to run them. The code is also available from the `project repository on GitHub <https://github.com/G-Node/nixpy/tree/master/docs/source/examples>`_.
1714

1815
.. toctree::
16+
:maxdepth: 1
17+
1918
file_handling
2019
storing_data
2120
tagging
@@ -24,5 +23,4 @@ Most code examples are standalone and you should be able to run them. The code i
2423
sources
2524
finding_things
2625
image_data
27-
spike_time_data
28-
:maxdepth: 1
26+
spike_time_data

docs/source/image_data.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.. toctree::
22
:maxdepth: 1
33

4-
.. _Image Data:
54

65
Image data
76
==========
@@ -47,7 +46,7 @@ data. The same Tag can be applied to many references as long as
4746
:lines: 80-84
4847
:caption: A *Tag* is used to tag a a single region of interest. Most image data is 3D with the third dimension representing the color channels (:download:`singleROI.py <examples/singleROI.py>`).
4948

50-
.. image:: examples/single_roi.png
49+
.. image:: images/single_roi.png
5150
:alt: single roi
5251
:width: 240
5352

docs/source/images/single_roi.png

468 KB
Loading

docs/source/index.rst

Lines changed: 27 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ Support
4848
If you need help, want to get in touch, or have any other request
4949
`these <contact.html>`__ are your options.
5050

51-
Contributing & Governance
52-
=========================
53-
54-
Any kind of contribution is welcome! This includes reporting bugs and
55-
issues. If you want to contribute to code or documentation please refer
56-
to the `contributing
57-
guide <https://github.com/G-Node/nix/blob/master/CONTRIBUTING.md>`__.
58-
59-
License
60-
=======
61-
62-
This project is open source published under the BSD-3 license see
63-
`license file <https://github.com/G-Node/nix/blob/master/LICENSE>`__ for
64-
details.
65-
6651
Citing
6752
======
6853

@@ -76,6 +61,8 @@ Neuroinform. Conference Abstract: Neuroinformatics 2014. doi:
7661

7762
Referenced by
7863
=============
64+
- Sinz et al. (2020)
65+
`doi:10.1152/jn.00615.2019 <https://doi.org/10.1152/jn.00615.2019>`__
7966
- Buccino et al. (2019)
8067
`doi:10.1101/796599 <https://www.biorxiv.org/content/10.1101/796599v1>`__
8168
- Sprenger et al. (2019)
@@ -94,76 +81,52 @@ Referenced by
9481
`doi:10.1007/978-3-319-50862-7_5 <https://doi.org/doi:10.1007/978-3-319-50862-7_5>`__
9582
- Teeters et al (2015)
9683
`doi:10.1016/j.neuron.2015.10.025 <https://doi.org/doi:10.1016/j.neuron.2015.10.025>`__
97-
98-
99-
--------------
10084

10185
.. toctree::
86+
:caption: Introduction
87+
:maxdepth: 1
88+
10289
basic_idea
10390
install
10491
standardization
105-
:caption: Introduction
106-
107-
:maxdepth: 1
108-
:caption: Getting started:
92+
Use-cases <https://nixio.readthedocs.io/en/master/use_cases.html>
10993

11094
.. toctree::
111-
news
11295
:maxdepth: 1
11396
:caption: News
97+
:hidden:
98+
99+
news
114100

115101
.. toctree::
116-
getting_started
117102
:maxdepth: 1
118103
:caption: Tutorials
119104

105+
getting_started
106+
120107
.. toctree::
121-
contact
122-
faq
123108
:caption: Troubleshooting:
124109
:maxdepth: 1
110+
:hidden:
125111

126-
127-
128-
Indices and tables
129-
==================
130-
131-
* :ref:`genindex`
132-
* :ref:`modindex`
133-
* :ref:`search`
134-
135-
136-
137-
High Level API Reference
138-
========================
139-
140-
User API documentation for Data and Metadata
112+
contact
113+
faq
141114

142115
.. toctree::
143-
user_api
144-
:maxdepth: 2
145-
:caption: High Level API
146-
147-
148-
Advanced
149-
========
150-
151-
Internal NIXIO API Developer Documentation
152-
------------------------------------------
153-
154-
The API documentation of internal modules, for NIXPy developers.
116+
:maxdepth: 1
117+
:caption: API Reference
118+
:hidden:
155119

156-
.. toctree::
120+
user_api
157121
api/nixio
158-
:maxdepth: 2
159-
:caption: Internal API
160-
161-
Source code
162-
===========
163-
164-
All sources are available under MIT open-souce license and is hosted on `GitHub <https://github.com/g-node/nixpy>`_.
165122

166123
.. toctree::
167-
Sources on GitHub <https://github.com/g-node/nixpy>
168-
:maxdepth: 1
169-
:caption: Source code
124+
:caption: Appendix
125+
:maxdepth: 1
126+
:hidden:
127+
128+
genindex
129+
py-modindex
130+
Sources on GitHub <https://github.com/g-node/nixpy>
131+
License <https://github.com/G-Node/nixpy/blob/master/LICENSE>
132+
Contributing guide <https://github.com/G-Node/nix/blob/master/CONTRIBUTING.md>

docs/source/py-modindex.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. This file is a placeholder and will be replaced
2+
3+
Module Index
4+
============

0 commit comments

Comments
 (0)