pyibis-ami 7.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyibis_ami-7.1.0/LICENSE +8 -0
- pyibis_ami-7.1.0/MANIFEST.in +7 -0
- pyibis_ami-7.1.0/PKG-INFO +134 -0
- pyibis_ami-7.1.0/README.md +97 -0
- pyibis_ami-7.1.0/docs/source/ami.rst +27 -0
- pyibis_ami-7.1.0/docs/source/conf.py +311 -0
- pyibis_ami-7.1.0/docs/source/ibis.rst +22 -0
- pyibis_ami-7.1.0/docs/source/index.rst +27 -0
- pyibis_ami-7.1.0/docs/source/install.rst +31 -0
- pyibis_ami-7.1.0/docs/source/modules.rst +12 -0
- pyibis_ami-7.1.0/docs/source/tools.rst +9 -0
- pyibis_ami-7.1.0/examples/all_taps.run +46 -0
- pyibis_ami-7.1.0/examples/bandwidth.run +23 -0
- pyibis_ami-7.1.0/examples/dummy.em +24 -0
- pyibis_ami-7.1.0/examples/examples.md +6 -0
- pyibis_ami-7.1.0/examples/freq_resp.em +103 -0
- pyibis_ami-7.1.0/examples/impulse.em +57 -0
- pyibis_ami-7.1.0/examples/impulse_response_8ma.txt +1150 -0
- pyibis_ami-7.1.0/examples/mode.run +34 -0
- pyibis_ami-7.1.0/examples/stratix4_ami_tx_runs/all_taps.run +77 -0
- pyibis_ami-7.1.0/examples/stratix4_ami_tx_runs/test_results.xml +202 -0
- pyibis_ami-7.1.0/examples/test_results/test_results.xsl +42 -0
- pyibis_ami-7.1.0/pyproject.toml +102 -0
- pyibis_ami-7.1.0/setup.cfg +4 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/PKG-INFO +134 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/SOURCES.txt +55 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/dependency_links.txt +1 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/entry_points.txt +4 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/requires.txt +9 -0
- pyibis_ami-7.1.0/src/PyIBIS_AMI.egg-info/top_level.txt +1 -0
- pyibis_ami-7.1.0/src/pyibisami/IBIS_AMI_Checker.ipynb +1693 -0
- pyibis_ami-7.1.0/src/pyibisami/IBIS_AMI_Tester.ipynb +1457 -0
- pyibis_ami-7.1.0/src/pyibisami/__init__.py +22 -0
- pyibis_ami-7.1.0/src/pyibisami/__main__.py +7 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/__init__.py +0 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/config.py +297 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/generic.ami.em +20 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/generic.ibs.em +139 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/model.py +596 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/parameter.py +375 -0
- pyibis_ami-7.1.0/src/pyibisami/ami/parser.py +635 -0
- pyibis_ami-7.1.0/src/pyibisami/common.py +40 -0
- pyibis_ami-7.1.0/src/pyibisami/ibis/__init__.py +0 -0
- pyibis_ami-7.1.0/src/pyibisami/ibis/file.py +325 -0
- pyibis_ami-7.1.0/src/pyibisami/ibis/model.py +399 -0
- pyibis_ami-7.1.0/src/pyibisami/ibis/parser.py +525 -0
- pyibis_ami-7.1.0/src/pyibisami/tools/__init__.py +0 -0
- pyibis_ami-7.1.0/src/pyibisami/tools/run_notebook.py +144 -0
- pyibis_ami-7.1.0/src/pyibisami/tools/run_tests.py +273 -0
- pyibis_ami-7.1.0/src/pyibisami/tools/test_results.xsl +42 -0
- pyibis_ami-7.1.0/tests/test_run_tests.py +139 -0
pyibis_ami-7.1.0/LICENSE
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
Copyright (c) 2012, David Banas
|
2
|
+
All rights reserved World wide.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
5
|
+
|
6
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
7
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
8
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,134 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: pyibis-ami
|
3
|
+
Version: 7.1.0
|
4
|
+
Summary: Facilitates working directly with IBIS-AMI DLLs from the Python command prompt.
|
5
|
+
Author-email: David Banas <capn.freako@gmail.com>
|
6
|
+
License: BSD
|
7
|
+
Project-URL: Documentation, https://pyibis-ami.readthedocs.io/en/latest/
|
8
|
+
Project-URL: Wiki, https://github.com/capn-freako/PyAMI/wiki
|
9
|
+
Project-URL: GitHub, https://github.com/capn-freako/PyAMI
|
10
|
+
Project-URL: PyPi, https://pypi.org/project/PyIBIS-AMI/
|
11
|
+
Keywords: ibis-ami
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
13
|
+
Classifier: Environment :: Console
|
14
|
+
Classifier: Intended Audience :: Developers
|
15
|
+
Classifier: License :: OSI Approved :: BSD License
|
16
|
+
Classifier: Operating System :: OS Independent
|
17
|
+
Classifier: Programming Language :: Python
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
22
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
23
|
+
Classifier: Topic :: System :: Emulators
|
24
|
+
Classifier: Topic :: Utilities
|
25
|
+
Requires-Python: <3.13,>=3.10
|
26
|
+
Description-Content-Type: text/markdown
|
27
|
+
License-File: LICENSE
|
28
|
+
Requires-Dist: chaco>=6.0.0
|
29
|
+
Requires-Dist: click>=8.1.3
|
30
|
+
Requires-Dist: empy>=3.3.4
|
31
|
+
Requires-Dist: importlib_resources
|
32
|
+
Requires-Dist: matplotlib>=3.6.1
|
33
|
+
Requires-Dist: numpy<1.27,>=1.26
|
34
|
+
Requires-Dist: papermill
|
35
|
+
Requires-Dist: parsec>=3.15
|
36
|
+
Requires-Dist: scipy>=1.9
|
37
|
+
|
38
|
+
[](https://results.pre-commit.ci/latest/github/capn-freako/PyAMI/master)
|
39
|
+
|
40
|
+
# PyIBIS-AMI
|
41
|
+
|
42
|
+
PyIBIS-AMI is a Python package of tools useful in the development and testing of IBIS-AMI models.
|
43
|
+
This library is used in [PyBERT](https://github.com/capn-freako/PyBERT) and also provides two
|
44
|
+
command line applications.
|
45
|
+
|
46
|
+
It can be installed via: `pip install PyIBIS-AMI`.
|
47
|
+
|
48
|
+
[View API/Developer's Documentation.](https://pyibis-ami.readthedocs.io/en/latest/)
|
49
|
+
|
50
|
+
## Command Line Tools
|
51
|
+
|
52
|
+
### Run IBIS-AMI Model Testing Notebook
|
53
|
+
|
54
|
+
```shell
|
55
|
+
$ run-notebook -h
|
56
|
+
Usage: run-notebook [OPTIONS] IBIS_FILE BIT_RATE
|
57
|
+
|
58
|
+
Run a *Jupyter* notebook on an IBIS-AMI model file.
|
59
|
+
|
60
|
+
Options:
|
61
|
+
-n, --notebook PATH Override the default notebook file name.
|
62
|
+
-o, --out-dir PATH Override the name of the directory in which to place
|
63
|
+
the results.
|
64
|
+
-p, --params TEXT Directory (or, file) containing configuration sweeps.
|
65
|
+
--debug Provide extra debugging information.
|
66
|
+
--is_tx Flags a Tx model.
|
67
|
+
--nspui INTEGER Number of samples per unit interval. [default: 32]
|
68
|
+
--nbits INTEGER Number of bits to run in simulations. [default: 200]
|
69
|
+
--plot-t-max FLOAT Maximum time value for plots (s). [default: 5e-10]
|
70
|
+
--f-max FLOAT Maximum frequency for transfer functions (Hz).
|
71
|
+
[default: 40000000000.0]
|
72
|
+
--f-step FLOAT Frequency step for transfer functions (Hz). [default:
|
73
|
+
10000000.0]
|
74
|
+
--fig-x INTEGER x-dimmension for plot figures (in). [default: 10]
|
75
|
+
--fig-y INTEGER y-dimmension for plot figures (in). [default: 3]
|
76
|
+
--version Show the version and exit.
|
77
|
+
-h, --help Show this message and exit.
|
78
|
+
```
|
79
|
+
|
80
|
+
### AMI Config
|
81
|
+
|
82
|
+
```shell
|
83
|
+
ami_config -h
|
84
|
+
Usage: ami_config [OPTIONS] PY_FILE
|
85
|
+
|
86
|
+
Configure IBIS-AMI model C++ source code, IBIS model, and AMI file.
|
87
|
+
|
88
|
+
py_file: name of model configuration file (*.py)
|
89
|
+
|
90
|
+
Options:
|
91
|
+
-h, --help Show this message and exit.
|
92
|
+
```
|
93
|
+
|
94
|
+
### Run Tests
|
95
|
+
|
96
|
+
```shell
|
97
|
+
run_tests -h
|
98
|
+
Usage: run_tests [OPTIONS] [TESTS]...
|
99
|
+
|
100
|
+
Run a series of tests on a AMI model DLL file.
|
101
|
+
|
102
|
+
If no tests are specified on the command line, run all tests found in
|
103
|
+
`test_dir'. (See `-t' option.)
|
104
|
+
|
105
|
+
usage: %prog [options] [test1 [test2 ...]]
|
106
|
+
|
107
|
+
Tests are written in the EmPy templating language, and produce XML output.
|
108
|
+
(See the examples provided in the `examples' directory of the `pyibisami'
|
109
|
+
Python package.)
|
110
|
+
|
111
|
+
Test results should be viewed by loading the XML output file into a Web
|
112
|
+
browser. By default, the XML output file refers to the supplied XSLT file,
|
113
|
+
`test_results.xsl'. It is possible that you may need to copy this file
|
114
|
+
from the pyibisami package directory to your local working directory, in
|
115
|
+
order to avoid file loading errors in your Web browser.
|
116
|
+
|
117
|
+
Options:
|
118
|
+
-t, --test_dir PATH Sets the name of the directory from which tests are
|
119
|
+
taken.
|
120
|
+
-m, --model PATH Sets the AMI model DLL file name.
|
121
|
+
-p, --params TEXT List of lists of model configurations. Format:
|
122
|
+
<filename> or [(name, [(label, ({AMI params., in
|
123
|
+
"key:val" format},{Model params., in "key:val"
|
124
|
+
format})), ...]), ...]
|
125
|
+
-x, --xml_file PATH Sets the name of the XML output file. You should load
|
126
|
+
this file into your Web browser after the program
|
127
|
+
completion.
|
128
|
+
-r, --ref_dir PATH Sets the name of the directory from which reference
|
129
|
+
waveforms are taken.
|
130
|
+
-o, --out_dir PATH Sets the name of the directory in which to place the
|
131
|
+
results.
|
132
|
+
-v, --version TEXT Show program version info and exit.
|
133
|
+
-h, --help Show this message and exit.
|
134
|
+
```
|
@@ -0,0 +1,97 @@
|
|
1
|
+
[](https://results.pre-commit.ci/latest/github/capn-freako/PyAMI/master)
|
2
|
+
|
3
|
+
# PyIBIS-AMI
|
4
|
+
|
5
|
+
PyIBIS-AMI is a Python package of tools useful in the development and testing of IBIS-AMI models.
|
6
|
+
This library is used in [PyBERT](https://github.com/capn-freako/PyBERT) and also provides two
|
7
|
+
command line applications.
|
8
|
+
|
9
|
+
It can be installed via: `pip install PyIBIS-AMI`.
|
10
|
+
|
11
|
+
[View API/Developer's Documentation.](https://pyibis-ami.readthedocs.io/en/latest/)
|
12
|
+
|
13
|
+
## Command Line Tools
|
14
|
+
|
15
|
+
### Run IBIS-AMI Model Testing Notebook
|
16
|
+
|
17
|
+
```shell
|
18
|
+
$ run-notebook -h
|
19
|
+
Usage: run-notebook [OPTIONS] IBIS_FILE BIT_RATE
|
20
|
+
|
21
|
+
Run a *Jupyter* notebook on an IBIS-AMI model file.
|
22
|
+
|
23
|
+
Options:
|
24
|
+
-n, --notebook PATH Override the default notebook file name.
|
25
|
+
-o, --out-dir PATH Override the name of the directory in which to place
|
26
|
+
the results.
|
27
|
+
-p, --params TEXT Directory (or, file) containing configuration sweeps.
|
28
|
+
--debug Provide extra debugging information.
|
29
|
+
--is_tx Flags a Tx model.
|
30
|
+
--nspui INTEGER Number of samples per unit interval. [default: 32]
|
31
|
+
--nbits INTEGER Number of bits to run in simulations. [default: 200]
|
32
|
+
--plot-t-max FLOAT Maximum time value for plots (s). [default: 5e-10]
|
33
|
+
--f-max FLOAT Maximum frequency for transfer functions (Hz).
|
34
|
+
[default: 40000000000.0]
|
35
|
+
--f-step FLOAT Frequency step for transfer functions (Hz). [default:
|
36
|
+
10000000.0]
|
37
|
+
--fig-x INTEGER x-dimmension for plot figures (in). [default: 10]
|
38
|
+
--fig-y INTEGER y-dimmension for plot figures (in). [default: 3]
|
39
|
+
--version Show the version and exit.
|
40
|
+
-h, --help Show this message and exit.
|
41
|
+
```
|
42
|
+
|
43
|
+
### AMI Config
|
44
|
+
|
45
|
+
```shell
|
46
|
+
ami_config -h
|
47
|
+
Usage: ami_config [OPTIONS] PY_FILE
|
48
|
+
|
49
|
+
Configure IBIS-AMI model C++ source code, IBIS model, and AMI file.
|
50
|
+
|
51
|
+
py_file: name of model configuration file (*.py)
|
52
|
+
|
53
|
+
Options:
|
54
|
+
-h, --help Show this message and exit.
|
55
|
+
```
|
56
|
+
|
57
|
+
### Run Tests
|
58
|
+
|
59
|
+
```shell
|
60
|
+
run_tests -h
|
61
|
+
Usage: run_tests [OPTIONS] [TESTS]...
|
62
|
+
|
63
|
+
Run a series of tests on a AMI model DLL file.
|
64
|
+
|
65
|
+
If no tests are specified on the command line, run all tests found in
|
66
|
+
`test_dir'. (See `-t' option.)
|
67
|
+
|
68
|
+
usage: %prog [options] [test1 [test2 ...]]
|
69
|
+
|
70
|
+
Tests are written in the EmPy templating language, and produce XML output.
|
71
|
+
(See the examples provided in the `examples' directory of the `pyibisami'
|
72
|
+
Python package.)
|
73
|
+
|
74
|
+
Test results should be viewed by loading the XML output file into a Web
|
75
|
+
browser. By default, the XML output file refers to the supplied XSLT file,
|
76
|
+
`test_results.xsl'. It is possible that you may need to copy this file
|
77
|
+
from the pyibisami package directory to your local working directory, in
|
78
|
+
order to avoid file loading errors in your Web browser.
|
79
|
+
|
80
|
+
Options:
|
81
|
+
-t, --test_dir PATH Sets the name of the directory from which tests are
|
82
|
+
taken.
|
83
|
+
-m, --model PATH Sets the AMI model DLL file name.
|
84
|
+
-p, --params TEXT List of lists of model configurations. Format:
|
85
|
+
<filename> or [(name, [(label, ({AMI params., in
|
86
|
+
"key:val" format},{Model params., in "key:val"
|
87
|
+
format})), ...]), ...]
|
88
|
+
-x, --xml_file PATH Sets the name of the XML output file. You should load
|
89
|
+
this file into your Web browser after the program
|
90
|
+
completion.
|
91
|
+
-r, --ref_dir PATH Sets the name of the directory from which reference
|
92
|
+
waveforms are taken.
|
93
|
+
-o, --out_dir PATH Sets the name of the directory in which to place the
|
94
|
+
results.
|
95
|
+
-v, --version TEXT Show program version info and exit.
|
96
|
+
-h, --help Show this message and exit.
|
97
|
+
```
|
@@ -0,0 +1,27 @@
|
|
1
|
+
pyibisami.ami
|
2
|
+
=============
|
3
|
+
|
4
|
+
AMI related submodules in the *PyIBIS-AMI* package.
|
5
|
+
|
6
|
+
config
|
7
|
+
------
|
8
|
+
|
9
|
+
.. automodule:: pyibisami.ami.config
|
10
|
+
|
11
|
+
model
|
12
|
+
-----
|
13
|
+
|
14
|
+
.. automodule:: pyibisami.ami.model
|
15
|
+
|
16
|
+
parameter
|
17
|
+
---------
|
18
|
+
|
19
|
+
.. automodule:: pyibisami.ami.parameter
|
20
|
+
|
21
|
+
parser
|
22
|
+
------
|
23
|
+
|
24
|
+
Sorry, the code in this module breaks the *Sphinx* ``autodoc`` processor.
|
25
|
+
So, we have to exclude it from these docs.
|
26
|
+
You'll have to peruse the comments in the code, manually.
|
27
|
+
See the ``pyibisami/ami/parser.py`` file.
|
@@ -0,0 +1,311 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# PyIBIS-AMI Developer Guide documentation build configuration file, created by
|
4
|
+
# sphinx-quickstart on Tue Feb 10 10:04:12 2015.
|
5
|
+
#
|
6
|
+
# This file is execfile()d with the current directory set to its
|
7
|
+
# containing dir.
|
8
|
+
#
|
9
|
+
# Note that not all possible configuration values are present in this
|
10
|
+
# autogenerated file.
|
11
|
+
#
|
12
|
+
# All configuration values have a default; values that are commented out
|
13
|
+
# serve to show the default.
|
14
|
+
|
15
|
+
import os
|
16
|
+
import sys
|
17
|
+
|
18
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
19
|
+
# add these directories to sys.path here. If the directory is relative to the
|
20
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
21
|
+
sys.path.insert(0, os.path.abspath("../../src"))
|
22
|
+
|
23
|
+
# -- General configuration ------------------------------------------------
|
24
|
+
|
25
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
26
|
+
# needs_sphinx = '1.0'
|
27
|
+
|
28
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
29
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
30
|
+
# ones.
|
31
|
+
extensions = [
|
32
|
+
"sphinx.ext.autodoc",
|
33
|
+
"sphinx.ext.viewcode",
|
34
|
+
"sphinx.ext.napoleon",
|
35
|
+
"sphinx.ext.coverage",
|
36
|
+
"sphinx.ext.todo",
|
37
|
+
# "sphinx.ext.autosummary",
|
38
|
+
"m2r2",
|
39
|
+
]
|
40
|
+
autodoc_default_options = {
|
41
|
+
"undoc-members": True,
|
42
|
+
"inherited-members": False,
|
43
|
+
"show-inheritance": True,
|
44
|
+
"members": True,
|
45
|
+
"exclude-members": "default_traits_view",
|
46
|
+
}
|
47
|
+
autodoc_mock_imports = [
|
48
|
+
"chaco",
|
49
|
+
"click",
|
50
|
+
"em",
|
51
|
+
"enable",
|
52
|
+
"matplotlib",
|
53
|
+
"numpy",
|
54
|
+
"parsec",
|
55
|
+
"pyibisami.ami.parser",
|
56
|
+
"pyibisami.ibis.parser",
|
57
|
+
"scipy",
|
58
|
+
"traits",
|
59
|
+
"traitsui",
|
60
|
+
]
|
61
|
+
autoclass_content = "both"
|
62
|
+
autodata_content = "both"
|
63
|
+
|
64
|
+
# Add any paths that contain templates here, relative to this directory.
|
65
|
+
templates_path = ["_templates"]
|
66
|
+
|
67
|
+
# The suffix of source filenames.
|
68
|
+
source_suffix = ".rst"
|
69
|
+
|
70
|
+
# The encoding of source files.
|
71
|
+
# source_encoding = 'utf-8-sig'
|
72
|
+
|
73
|
+
# The master toctree document.
|
74
|
+
master_doc = "index"
|
75
|
+
|
76
|
+
# -- Project information -----------------------------------------------------
|
77
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
78
|
+
project = "PyIBIS-AMI User's Guide"
|
79
|
+
copyright = "2015, David Banas"
|
80
|
+
author = "David Banas"
|
81
|
+
|
82
|
+
# The version info for the project you're documenting, acts as replacement for
|
83
|
+
# |version| and |release|, also used in various other places throughout the
|
84
|
+
# built documents.
|
85
|
+
#
|
86
|
+
# The short X.Y version.
|
87
|
+
version = "7.1"
|
88
|
+
# The full version, including alpha/beta/rc tags.
|
89
|
+
release = "7.1.0"
|
90
|
+
|
91
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
92
|
+
# for a list of supported languages.
|
93
|
+
#
|
94
|
+
# This is also used if you do content translation via gettext catalogs.
|
95
|
+
# Usually you set "language" from the command line for these cases.
|
96
|
+
language = "en"
|
97
|
+
|
98
|
+
# There are two options for replacing |today|: either, you set today to some
|
99
|
+
# non-false value, then it is used:
|
100
|
+
# today = ''
|
101
|
+
# Else, today_fmt is used as the format for a strftime call.
|
102
|
+
# today_fmt = '%B %d, %Y'
|
103
|
+
|
104
|
+
# List of patterns, relative to source directory, that match files and
|
105
|
+
# directories to ignore when looking for source files.
|
106
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
107
|
+
|
108
|
+
# The reST default role (used for this markup: `text`) to use for all
|
109
|
+
# documents.
|
110
|
+
# default_role = None
|
111
|
+
|
112
|
+
# If true, '()' will be appended to :func: etc. cross-reference text.
|
113
|
+
# add_function_parentheses = True
|
114
|
+
|
115
|
+
# If true, the current module name will be prepended to all description
|
116
|
+
# unit titles (such as .. function::).
|
117
|
+
# add_module_names = True
|
118
|
+
|
119
|
+
# If true, sectionauthor and moduleauthor directives will be shown in the
|
120
|
+
# output. They are ignored by default.
|
121
|
+
# show_authors = False
|
122
|
+
|
123
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
124
|
+
pygments_style = "sphinx"
|
125
|
+
|
126
|
+
# A list of ignored prefixes for module index sorting.
|
127
|
+
# modindex_common_prefix = []
|
128
|
+
|
129
|
+
# If true, keep warnings as "system message" paragraphs in the built documents.
|
130
|
+
# keep_warnings = False
|
131
|
+
|
132
|
+
|
133
|
+
# -- Options for HTML output ----------------------------------------------
|
134
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
135
|
+
|
136
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
137
|
+
# a list of builtin themes.
|
138
|
+
html_theme = "sphinx_rtd_theme"
|
139
|
+
todo_include_todos = True
|
140
|
+
|
141
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
142
|
+
# further. For a list of options available for each theme, see the
|
143
|
+
# documentation.
|
144
|
+
# html_theme_options = {}
|
145
|
+
|
146
|
+
# Add any paths that contain custom themes here, relative to this directory.
|
147
|
+
# html_theme_path = []
|
148
|
+
|
149
|
+
# The name for this set of Sphinx documents. If None, it defaults to
|
150
|
+
# "<project> v<release> documentation".
|
151
|
+
# html_title = None
|
152
|
+
|
153
|
+
# A shorter title for the navigation bar. Default is the same as html_title.
|
154
|
+
# html_short_title = None
|
155
|
+
|
156
|
+
# The name of an image file (relative to this directory) to place at the top
|
157
|
+
# of the sidebar.
|
158
|
+
# html_logo = None
|
159
|
+
|
160
|
+
# The name of an image file (within the static path) to use as favicon of the
|
161
|
+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
162
|
+
# pixels large.
|
163
|
+
# html_favicon = None
|
164
|
+
|
165
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
166
|
+
# relative to this directory. They are copied after the builtin static files,
|
167
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
168
|
+
html_static_path = ["_static"]
|
169
|
+
|
170
|
+
# Add any extra paths that contain custom files (such as robots.txt or
|
171
|
+
# .htaccess) here, relative to this directory. These files are copied
|
172
|
+
# directly to the root of the documentation.
|
173
|
+
# html_extra_path = []
|
174
|
+
|
175
|
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
176
|
+
# using the given strftime format.
|
177
|
+
# html_last_updated_fmt = '%b %d, %Y'
|
178
|
+
|
179
|
+
# If true, SmartyPants will be used to convert quotes and dashes to
|
180
|
+
# typographically correct entities.
|
181
|
+
# html_use_smartypants = True
|
182
|
+
|
183
|
+
# Custom sidebar templates, maps document names to template names.
|
184
|
+
# html_sidebars = {}
|
185
|
+
|
186
|
+
# Additional templates that should be rendered to pages, maps page names to
|
187
|
+
# template names.
|
188
|
+
# html_additional_pages = {}
|
189
|
+
|
190
|
+
# If false, no module index is generated.
|
191
|
+
# html_domain_indices = True
|
192
|
+
|
193
|
+
# If false, no index is generated.
|
194
|
+
# html_use_index = True
|
195
|
+
|
196
|
+
# If true, the index is split into individual pages for each letter.
|
197
|
+
# html_split_index = False
|
198
|
+
|
199
|
+
# If true, links to the reST sources are added to the pages.
|
200
|
+
# html_show_sourcelink = True
|
201
|
+
|
202
|
+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
203
|
+
# html_show_sphinx = True
|
204
|
+
|
205
|
+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
206
|
+
# html_show_copyright = True
|
207
|
+
|
208
|
+
# If true, an OpenSearch description file will be output, and all pages will
|
209
|
+
# contain a <link> tag referring to it. The value of this option must be the
|
210
|
+
# base URL from which the finished HTML is served.
|
211
|
+
# html_use_opensearch = ''
|
212
|
+
|
213
|
+
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
214
|
+
# html_file_suffix = None
|
215
|
+
|
216
|
+
# Language to be used for generating the HTML full-text search index.
|
217
|
+
# Sphinx supports the following languages:
|
218
|
+
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
|
219
|
+
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
|
220
|
+
# html_search_language = 'en'
|
221
|
+
|
222
|
+
# A dictionary with options for the search language support, empty by default.
|
223
|
+
# Now only 'ja' uses this config value
|
224
|
+
# html_search_options = {'type': 'default'}
|
225
|
+
|
226
|
+
# The name of a javascript file (relative to the configuration directory) that
|
227
|
+
# implements a search results scorer. If empty, the default will be used.
|
228
|
+
# html_search_scorer = 'scorer.js'
|
229
|
+
|
230
|
+
# Output file base name for HTML help builder.
|
231
|
+
htmlhelp_basename = "PyIBIS-AMIUserGuidedoc"
|
232
|
+
|
233
|
+
# -- Options for LaTeX output ---------------------------------------------
|
234
|
+
|
235
|
+
# latex_elements = {
|
236
|
+
# The paper size ('letterpaper' or 'a4paper').
|
237
|
+
#'papersize': 'letterpaper',
|
238
|
+
# The font size ('10pt', '11pt' or '12pt').
|
239
|
+
#'pointsize': '10pt',
|
240
|
+
# Additional stuff for the LaTeX preamble.
|
241
|
+
#'preamble': '',
|
242
|
+
# Latex figure (float) alignment
|
243
|
+
#'figure_align': 'htbp',
|
244
|
+
# }
|
245
|
+
|
246
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
247
|
+
# (source start file, target name, title,
|
248
|
+
# author, documentclass [howto, manual, or own class]).
|
249
|
+
# latex_documents = [
|
250
|
+
# ("index", "PyIBIS-AMIDeveloperGuide.tex", "PyIBIS-AMI Developer Guide Documentation", "David Banas", "manual"),
|
251
|
+
# ]
|
252
|
+
|
253
|
+
# The name of an image file (relative to this directory) to place at the top of
|
254
|
+
# the title page.
|
255
|
+
# latex_logo = None
|
256
|
+
|
257
|
+
# For "manual" documents, if this is true, then toplevel headings are parts,
|
258
|
+
# not chapters.
|
259
|
+
# latex_use_parts = False
|
260
|
+
|
261
|
+
# If true, show page references after internal links.
|
262
|
+
# latex_show_pagerefs = False
|
263
|
+
|
264
|
+
# If true, show URL addresses after external links.
|
265
|
+
# latex_show_urls = False
|
266
|
+
|
267
|
+
# Documents to append as an appendix to all manuals.
|
268
|
+
# latex_appendices = []
|
269
|
+
|
270
|
+
# If false, no module index is generated.
|
271
|
+
# latex_domain_indices = True
|
272
|
+
|
273
|
+
|
274
|
+
# -- Options for manual page output ---------------------------------------
|
275
|
+
|
276
|
+
# One entry per manual page. List of tuples
|
277
|
+
# (source start file, name, description, authors, manual section).
|
278
|
+
# man_pages = [("index", "pyibis-amideveloperguide", "PyIBIS-AMI Developer Guide Documentation", ["David Banas"], 1)]
|
279
|
+
|
280
|
+
# If true, show URL addresses after external links.
|
281
|
+
# man_show_urls = False
|
282
|
+
|
283
|
+
|
284
|
+
# -- Options for Texinfo output -------------------------------------------
|
285
|
+
|
286
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
287
|
+
# (source start file, target name, title, author,
|
288
|
+
# dir menu entry, description, category)
|
289
|
+
# texinfo_documents = [
|
290
|
+
# (
|
291
|
+
# "index",
|
292
|
+
# "PyIBIS-AMIDeveloperGuide",
|
293
|
+
# "PyIBIS-AMI Developer Guide Documentation",
|
294
|
+
# "David Banas",
|
295
|
+
# "PyIBIS-AMIDeveloperGuide",
|
296
|
+
# "One line description of project.",
|
297
|
+
# "Miscellaneous",
|
298
|
+
# ),
|
299
|
+
# ]
|
300
|
+
|
301
|
+
# Documents to append as an appendix to all manuals.
|
302
|
+
# texinfo_appendices = []
|
303
|
+
|
304
|
+
# If false, no module index is generated.
|
305
|
+
# texinfo_domain_indices = True
|
306
|
+
|
307
|
+
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
308
|
+
# texinfo_show_urls = 'footnote'
|
309
|
+
|
310
|
+
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
311
|
+
# texinfo_no_detailmenu = False
|
@@ -0,0 +1,22 @@
|
|
1
|
+
pyibisami.ibis
|
2
|
+
==============
|
3
|
+
|
4
|
+
IBIS related submodules in the *PyIBIS-AMI* package.
|
5
|
+
|
6
|
+
file
|
7
|
+
----
|
8
|
+
|
9
|
+
.. automodule:: pyibisami.ibis.file
|
10
|
+
|
11
|
+
model
|
12
|
+
-----
|
13
|
+
|
14
|
+
.. automodule:: pyibisami.ibis.model
|
15
|
+
|
16
|
+
parser
|
17
|
+
------
|
18
|
+
|
19
|
+
Sorry, the code in this module breaks the *Sphinx* ``autodoc`` processor.
|
20
|
+
So, we have to exclude it from these docs.
|
21
|
+
You'll have to peruse the comments in the code, manually.
|
22
|
+
See the ``pyibisami/ibis/parser.py`` file.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.. PyIBIS-AMI Developer Guide documentation master file, created by
|
2
|
+
copying PyIBIS-AMI Sphinx files on Tue Jan 24 2017.
|
3
|
+
You can adapt this file completely to your liking, but it should at least
|
4
|
+
contain the root `toctree` directive.
|
5
|
+
|
6
|
+
*PyIBIS-AMI* API User's Guide
|
7
|
+
==============================
|
8
|
+
|
9
|
+
Welcome to the *PyIBIS-AMI* API user's documentation!
|
10
|
+
|
11
|
+
Contents
|
12
|
+
--------
|
13
|
+
|
14
|
+
.. toctree::
|
15
|
+
:maxdepth: 2
|
16
|
+
|
17
|
+
install
|
18
|
+
modules
|
19
|
+
|
20
|
+
Indices and tables
|
21
|
+
------------------
|
22
|
+
|
23
|
+
* :ref:`genindex`
|
24
|
+
* :ref:`modindex`
|
25
|
+
* :ref:`search`
|
26
|
+
|
27
|
+
.. mdinclude:: ../../README.md
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Installation Instructions
|
2
|
+
=========================
|
3
|
+
|
4
|
+
Installation into system Python environment
|
5
|
+
-------------------------------------------
|
6
|
+
|
7
|
+
If you don't mind installing *PyIBIS-AMI* into your system Python package library then installation is as simple as:
|
8
|
+
|
9
|
+
`pip install pyibis-ami`
|
10
|
+
|
11
|
+
Installation into custom virtual Python environment
|
12
|
+
---------------------------------------------------
|
13
|
+
|
14
|
+
If, instead, you'd prefer to confine the *PyIBIS-AMI* package to a virtual environment, thus protecting your system Python installation from it, then execute these commands, in order:
|
15
|
+
|
16
|
+
1. `python3 -m venv ~/.venv/pyibisami` (Creates a new Python virtual environment named "pyibisami".)
|
17
|
+
|
18
|
+
2. `. ~/.venv/pyibisami/bin/activate` (on Windows: `. ~/.venv/pyibisami/Scripts/activate`) (Activates the new environment.)
|
19
|
+
|
20
|
+
- At this point, you should begin seeing "(pyibisami)" at the beginning of your command prompt, indicating that you have activated your `pyibisami` Python virtual environment activated.
|
21
|
+
|
22
|
+
3. `pip install pyibis-ami` (Installs the *PyIBIS-AMI* package into your new virtual environment.)
|
23
|
+
|
24
|
+
Testing the installation
|
25
|
+
------------------------
|
26
|
+
|
27
|
+
Either way, as a check on correct installation, run the following command:
|
28
|
+
|
29
|
+
`python -c "import pyibisami"`
|
30
|
+
|
31
|
+
And if you don't get a traceback/error then you've installed the package successfully!
|