-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from capn-freako/17-comment-clean-up-for-bette…
…r-sphinx-output Comments cleaned up for better Sphinx-generated documentation.
- Loading branch information
Showing
25 changed files
with
627 additions
and
1,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
Developer Setup Guide | ||
===================== | ||
|
||
These instructions will help you get set up to make your own changes to the *PyChOpMarg* source code and see the effects of those changes immediately. | ||
|
||
It is generally advisable to work within a *virtual environment* when installing and/or developing a non-standard package, such as *PyChOpMarg*. | ||
And these instructions will guide you down that path. | ||
This will protect your existing system Python installation from any incompatibilities between it and *PyChOpMarg* and/or its dependencies. | ||
|
||
*GitHub* Repo. Forking/Cloning | ||
------------------------------ | ||
|
||
In order to propagate any changes you make to the *PyChOpMarg* source code back into the main repository from which the official Python package is built, you must: | ||
|
||
1. Create your *fork* of the *PyChOpMarg* repo. under your own *GitHub* account. | ||
|
||
a. Using your favorite browser, visit the [*PyChOpMarg* GitHub site](https://github.com/capn-freako/PyChOpMarg). | ||
|
||
b. Create your own fork of the *PyChOpMarg* repo., by clicking on the *Fork* button: | ||
|
||
.. image:: GitHub_Fork.png | ||
|
||
2. Clone your new fork to your preferred local development machine. | ||
|
||
a. Copy the link to your new fork: | ||
|
||
.. image:: GitHub_Clone.png | ||
|
||
b. Move into the desired parent directory for your *PyChOpMarg* folder. | ||
|
||
c. Execute the following command at an appropriate command/shell prompt: | ||
|
||
``git clone <Paste><RETURN>`` | ||
|
||
Installation | ||
------------ | ||
|
||
To install *PyChOpMarg* into a dedicated new virtual environment for development purposes, execute these commands from an appropriate shell prompt: | ||
|
||
1. ``python3 -m venv ~/.venv/pychopmarg-dev`` | ||
|
||
- This command creates the new dedicated Python virtual environment. | ||
|
||
- I've assumed that you keep your Python virtual environments in the ``.venv/`` sub-directory of your home directory. If that's not the case then you'll need to modify the command slightly, to accommodate your system layout and usage habbits. | ||
|
||
2. ``source ~/.venv/pychopmarg-dev/bin/activate`` | ||
|
||
- This command activates the new virtual environment, so we can install packages into it. | ||
|
||
- Windows users should use the command: ``. ~/.venv/pychopmarg-dev/Scripts/activate`` | ||
|
||
- You'll know that you have correctly activated your new virtual environment when you see the text "(pychopmarg-dev)" appear above your prompt. | ||
|
||
3. ``pushd PyChOpMarg/`` | ||
|
||
- Moving into the ``PyChOpMarg/`` directory is necessary, before executing the next command. | ||
|
||
4. ``pip install -e .`` | ||
|
||
- This command installs *PyChOpMarg* and its dependencies into your new virtual environment. | ||
|
||
- While the dependencies are installed in the usual manner, *PyChOpMarg* is installed in "editable" mode. | ||
This means that changes you make to the *PyChOpMarg* source code will have an immediate effect. | ||
|
||
5. Using the command: ``pip install <module>``, install the following <module>s: | ||
|
||
- ``setuptools`` | ||
- ``tox`` | ||
|
||
Develop & Test | ||
-------------- | ||
|
||
Make your desired changes to the *PyChOpMarg* source code. | ||
Make sure to lint, flake, and type check your new code. | ||
The provided makefile can be used for all of this. | ||
Execute: ``make``, to see a list of available targets, along with descriptions. | ||
|
||
Contributing Your Improvements | ||
------------------------------ | ||
|
||
In order to contribute your improvements to the main *PyChOpMarg* repository for inclusion in the next release, do the following: | ||
|
||
1. *Commit* your code changes to your local repo. | ||
|
||
``git commit`` | ||
|
||
2. *Push* your new commit up to your fork on GitHub. | ||
|
||
``git push`` | ||
|
||
Visit your fork on GitHub, using your favorite browser, and you will be offered the opportunity to create a *Pull Request* back to the main repo. | ||
By creating such a request, you are asking that your improvements be added to the main repo. and included in the next release. | ||
The development team will review your request and either: | ||
|
||
- accept it unmodified, | ||
|
||
- request that you make certain changes, or | ||
|
||
- realize that you are a numbskull and ask you to go away and never bother us again. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pychopmarg.noise | ||
================ | ||
|
||
Classes | ||
--------- | ||
|
||
.. autoclass:: pychopmarg.noise.NoiseCalc | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pychopmarg.optimize | ||
=================== | ||
|
||
Classes | ||
--------- | ||
|
||
.. autoclass:: pychopmarg.optimize.NormMode | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: | ||
|
||
Functions | ||
--------- | ||
|
||
.. autofunction:: pychopmarg.optimize.scale_taps | ||
.. autofunction:: pychopmarg.optimize.clip_taps | ||
.. autofunction:: pychopmarg.optimize.przf | ||
.. autofunction:: pychopmarg.optimize.mmse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
pychopmarg.utility | ||
================== | ||
|
||
**Note:** All submodule members are accessible, via: ``from pychopmarg.utility import ...`` | ||
|
||
filter | ||
------ | ||
|
||
.. automodule:: pychopmarg.utility.filter | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: | ||
|
||
general | ||
------- | ||
|
||
.. automodule:: pychopmarg.utility.general | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: | ||
|
||
probability | ||
----------- | ||
|
||
.. automodule:: pychopmarg.utility.probability | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: | ||
|
||
sparams | ||
------- | ||
|
||
.. automodule:: pychopmarg.utility.sparams | ||
:members: | ||
:undoc-members: | ||
:no-inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.