Skip to content
Snippets Groups Projects
Commit 84280e7c authored by ojs1g14's avatar ojs1g14
Browse files

Merge branch 'sorting_analyse.py_docs' into 'master'

switched to napoleon style docs

See merge request !9
parents e96d268f 57062431
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,16 @@ from collections import defaultdict ...@@ -14,8 +14,16 @@ from collections import defaultdict
class analyseMixin(object): class analyseMixin(object):
"""
Desc needed.
"""
def plot_slices(self, axis='Z', slWidth=10, stype=0): def plot_slices(self, axis='Z', slWidth=10, stype=0):
"""
method desc needed
"""
# Find the brim edges # Find the brim edges
ind = np.where(self.faceEdges[:,1] == -99999) ind = np.where(self.faceEdges[:,1] == -99999)
# Define max Z from lowest point on brim # Define max Z from lowest point on brim
...@@ -65,6 +73,10 @@ class analyseMixin(object): ...@@ -65,6 +73,10 @@ class analyseMixin(object):
@staticmethod @staticmethod
def create_slices(self, slices, axis='Z'): def create_slices(self, slices, axis='Z'):
"""
static method desc needed.
"""
vE = self.vert[:,2][self.edges] vE = self.vert[:,2][self.edges]
# Find all vertices below plane # Find all vertices below plane
polys = [] polys = []
...@@ -112,6 +124,18 @@ class analyseMixin(object): ...@@ -112,6 +124,18 @@ class analyseMixin(object):
return polys return polys
def create_slices_cy(self, slices, axis='Z'): def create_slices_cy(self, slices, axis='Z'):
"""
Another method desc.
Attributes
----------
slices : array
Probably not array
axis : arg
defaults to Z
"""
vE = self.vert[:,2][self.edges] vE = self.vert[:,2][self.edges]
# Find all vertices below plane # Find all vertices below plane
polys = [] polys = []
......
...@@ -203,6 +203,19 @@ WARNING: html_static_path entry 'C:\\Users\\Oliver\\Documents\\Internship-1718\\ ...@@ -203,6 +203,19 @@ WARNING: html_static_path entry 'C:\\Users\\Oliver\\Documents\\Internship-1718\\
Solution: Solution:
A \_static file containing css templates does exist in docs\\\_build\\html but sphinx looks for it in docs. I copied the file to this location and the error went away. A \_static file containing css templates does exist in docs\_build\\html but sphinx looks for it in docs. I copied the file to this location and the error went away.
Tracback 4:
\begin{lstlisting}[language=Python]
WARNING: toctree references unknown document 'source/AmpScan.analyse.analyseMixin.create_slices
\end{lstlisting}
9 warnings of this type were generated.
Solution:
'numpydoc' was removed from the extension list and replaced with 'sphinx.ext.napoleon'.
\end{document} \end{document}
...@@ -41,7 +41,7 @@ extensions = [ ...@@ -41,7 +41,7 @@ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.todo', 'sphinx.ext.todo',
'sphinx.ext.githubpages', 'sphinx.ext.githubpages',
'numpydoc', 'sphinx.ext.napoleon',
'sphinx.ext.mathjax', 'sphinx.ext.mathjax',
] ]
......
...@@ -12,18 +12,10 @@ AmpScan.align module ...@@ -12,18 +12,10 @@ AmpScan.align module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
AmpScan.test\_file module AmpScan.analyse module
------------------------- ----------------------
.. automodule:: AmpScan.test_file .. automodule:: AmpScan.analyse
:members:
:undoc-members:
:show-inheritance:
AmpScan.test\_file\_2 module
----------------------------
.. automodule:: AmpScan.test_file_2
:members: :members:
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment