Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
AmpScan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Joshua Steer
AmpScan
Commits
f2e94dc7
Commit
f2e94dc7
authored
7 years ago
by
ojs1g14
Browse files
Options
Downloads
Patches
Plain Diff
test file correctly rendered
parent
428ffed0
Branches
Branches containing commit
No related tags found
1 merge request
!4
test file correctly rendered
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
AmpScan/test_file.py
+124
-0
124 additions, 0 deletions
AmpScan/test_file.py
docs/conf.py
+2
-1
2 additions, 1 deletion
docs/conf.py
docs/source/AmpScan.rst
+8
-0
8 additions, 0 deletions
docs/source/AmpScan.rst
with
134 additions
and
1 deletion
AmpScan/test_file.py
0 → 100644
+
124
−
0
View file @
f2e94dc7
"""
This is the docstring for the example.py module. Modules names should
have short, all-lowercase names. The module name may have underscores if
this improves readability.
Every module should have a docstring at the very top of the file. The
module
'
s docstring may extend over multiple lines. If your docstring does
extend over multiple lines, the closing three quotation marks must be on
a line by itself, preferably preceded by a blank line.
"""
from
__future__
import
division
,
absolute_import
,
print_function
import
os
# standard library imports first
# Do NOT import using *, e.g. from numpy import *
#
# Import the module using
#
# import numpy
#
# instead or import individual functions as needed, e.g
#
# from numpy import array, zeros
#
# If you prefer the use of abbreviated module names, we suggest the
# convention used by NumPy itself::
import
numpy
as
np
import
matplotlib
as
mpl
import
matplotlib.pyplot
as
plt
# These abbreviated names are not to be used in docstrings; users must
# be able to paste and execute docstrings after importing only the
# numpy module itself, unabbreviated.
def
foo
(
var1
,
var2
,
long_var_name
=
'
hi
'
):
r
"""
A one-line summary that does not use variable names or the
function name.
Several sentences providing an extended description. Refer to
variables using back-ticks, e.g. `var`.
Parameters
----------
var1 : array_like
Array_like means all those objects -- lists, nested lists, etc. --
that can be converted to an array. We can also refer to
variables like `var1`.
var2 : int
The type above can either refer to an actual Python type
(e.g. ``int``), or describe the type of the variable in more
detail, e.g. ``(N,) ndarray`` or ``array_like``.
long_var_name : {
'
hi
'
,
'
ho
'
}, optional
Choices in brackets, default first when optional.
Returns
-------
type
Explanation of anonymous return value of type ``type``.
describe : type
Explanation of return value named `describe`.
out : type
Explanation of `out`.
type_without_description
Other Parameters
----------------
only_seldom_used_keywords : type
Explanation
common_parameters_listed_above : type
Explanation
Raises
------
BadException
Because you shouldn
'
t have done that.
See Also
--------
otherfunc : relationship (optional)
newfunc : Relationship (optional), which could be fairly long, in which
case the line wraps here.
thirdfunc, fourthfunc, fifthfunc
Notes
-----
Notes about the implementation algorithm (if needed).
This can have multiple paragraphs.
You may include some math:
.. math:: X(e^{j\omega } ) = x(n)e^{ - j\omega n}
And even use a Greek symbol like :math:`\omega` inline.
References
----------
Cite the relevant literature, e.g. [1]_. You may also cite these
references in the notes section above.
.. [1] O. McNoleg,
"
The integration of GIS, remote sensing,
expert systems and adaptive co-kriging for environmental habitat
modelling of the Highland Haggis using object-oriented, fuzzy-logic
and neural-network techniques,
"
Computers & Geosciences, vol. 22,
pp. 585-588, 1996.
Examples
--------
These are written in doctest format, and should illustrate how to
use the function.
>>>
a
=
[
1
,
2
,
3
]
>>>
print
[
x
+
3
for
x
in
a
]
[
4
,
5
,
6
]
>>>
print
"
a
\n\n
b
"
a
b
"""
pass
This diff is collapsed.
Click to expand it.
docs/conf.py
+
2
−
1
View file @
f2e94dc7
...
@@ -41,6 +41,7 @@ extensions = [
...
@@ -41,6 +41,7 @@ extensions = [
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.todo
'
,
'
sphinx.ext.todo
'
,
'
sphinx.ext.githubpages
'
,
'
sphinx.ext.githubpages
'
,
'
numpydoc
'
]
]
# Add any paths that contain templates here, relative to this directory.
# Add any paths that contain templates here, relative to this directory.
...
@@ -76,7 +77,7 @@ pygments_style = 'sphinx'
...
@@ -76,7 +77,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# a list of builtin themes.
#
#
html_theme
=
'
alabaster
'
html_theme
=
'
bizstyle
'
# Theme options are theme-specific and customize the look and feel of a theme
# 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
# further. For a list of options available for each theme, see the
...
...
This diff is collapsed.
Click to expand it.
docs/source/AmpScan.rst
+
8
−
0
View file @
f2e94dc7
...
@@ -124,6 +124,14 @@ AmpScan.surrogateModelGUI\_2 module
...
@@ -124,6 +124,14 @@ AmpScan.surrogateModelGUI\_2 module
:undoc-members:
:undoc-members:
:show-inheritance:
:show-inheritance:
AmpScan.test\_file module
-------------------------
.. automodule:: AmpScan.test_file
:members:
:undoc-members:
:show-inheritance:
AmpScan.trim module
AmpScan.trim module
-------------------
-------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment