Skip to content

Commit

Permalink
Another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli4 committed Nov 12, 2019
1 parent 7ce9ebd commit 64e1d1b
Show file tree
Hide file tree
Showing 36 changed files with 485 additions and 2,616 deletions.
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

55 changes: 24 additions & 31 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('..'))

import eyepy

sys.path.insert(0, os.path.abspath(".."))


# -- General configuration ---------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand All @@ -32,22 +34,22 @@

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "nbsphinx"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# General information about the project.
project = u'eyepy'
project = u"eyepy"
copyright = u"2019, Olivier Morelle"
author = u"Olivier Morelle"

Expand All @@ -70,10 +72,10 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand All @@ -84,7 +86,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
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
Expand All @@ -95,13 +97,13 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]


# -- Options for HTMLHelp output ---------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'eyepydoc'
htmlhelp_basename = "eyepydoc"


# -- Options for LaTeX output ------------------------------------------
Expand All @@ -110,15 +112,12 @@
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand All @@ -128,21 +127,15 @@
# (source start file, target name, title, author, documentclass
# [howto, manual, or own class]).
latex_documents = [
(master_doc, 'eyepy.tex',
u'eyepy Documentation',
u'Olivier Morelle', 'manual'),
(master_doc, "eyepy.tex", u"eyepy Documentation", u"Olivier Morelle", "manual")
]


# -- Options for manual page output ------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'eyepy',
u'eyepy Documentation',
[author], 1)
]
man_pages = [(master_doc, "eyepy", u"eyepy Documentation", [author], 1)]


# -- Options for Texinfo output ----------------------------------------
Expand All @@ -151,13 +144,13 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'eyepy',
u'eyepy Documentation',
author,
'eyepy',
'One line description of project.',
'Miscellaneous'),
(
master_doc,
"eyepy",
u"eyepy Documentation",
author,
"eyepy",
"One line description of project.",
"Miscellaneous",
)
]



4 changes: 1 addition & 3 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ Examples

.. toctree::
:maxdepth: 2

examples/rigid_registration


examples/rigid_registration
23 changes: 22 additions & 1 deletion docs/examples/rigid_registration.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ Welcome to eyepy's documentation!
readme
installation
usage
examples
modules
contributing
authors
history


Indices and tables
==================
* :ref:`genindex`
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Usage

To use eyepy in a project::

import eyepy
import eyepy as ep
4 changes: 1 addition & 3 deletions eyepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
__email__ = "oli4morelle@gmail.com"
__version__ = "0.1.0"

from . import io
from . import preprocess
from . import register
from . import io, preprocess, register
5 changes: 2 additions & 3 deletions eyepy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
def main():
"""Console script for eyepy."""
parser = argparse.ArgumentParser()
parser.add_argument('_', nargs='*')
parser.add_argument("_", nargs="*")
args = parser.parse_args()

print("Arguments: " + str(args._))
print("Replace this message by putting your code into "
"eyepy.cli.main")
print("Replace this message by putting your code into " "eyepy.cli.main")
return 0


Expand Down
1 change: 1 addition & 0 deletions eyepy/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
from .he_vol import VolReader
10 changes: 6 additions & 4 deletions eyepy/io/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import abc


Expand All @@ -7,20 +8,21 @@ def __init__(self):

@abc.abstractmethod
def read(self, filepath):
"""Returns an OCT object"""
"""Returns an OCT object."""
pass

@abc.abstractmethod
def read_meta(self, filepath):
"""Returns only the OCT meta data"""
"""Returns only the OCT meta data."""
pass

@abc.abstractmethod
def read_bscans(self, filepath):
"""Returns only the B-scans"""
"""Returns only the B-scans."""
pass

@abc.abstractmethod
def read_nir(self, filepath):
"""Returns only the near-infrared fundus reflectance (NIR) acquired by an scanning laser ophthalmoscope (SLO)"""
"""Returns only the near-infrared fundus reflectance (NIR) acquired by
an scanning laser ophthalmoscope (SLO)"""
pass

0 comments on commit 64e1d1b

Please sign in to comment.