Skip to content

Commit 0519358

Browse files
lucasgcbOrtnerMichael
authored andcommittedMay 13, 2019
Magpylib doku3 (magpylib#118)
* Add Sphinx settings for Rst + Markdown - These settings allow you to use rST and Markdown in the same file. - This is useful so one can use rST directives like the class and method links * Add getting started manual stub * Add first logo iteration to repository * Add autoplot of figures to guide, separate code * Update installation instructions * Update examples to autoplot * Update installation examples * Organize static file structure, add install images * Add source summary, moved image on summary * Add smoothing for pages, update install page * Scale down static images for summary and init * Add fundamentals page * Change Library Contents to Library Docstrings, Reorder Index * Remove About Subheader from index.rst * Add examples for Source Objects * Fix broken link to Examples in install guide * Add input types table, add output display to scripts * Give examples its own folder in pyplot folder * Add output to collection comments * Fix grammar in example comments * Add animations to fundamentals, add more stuff to guide * Update fundamentals with more images * Add link to quaternions * Add an unhealthy amount of code examples to Getting Started * Update axis information in manipulation title (X and Y were swapped) * Add multiprocess example * Add direction arrows to currents in example * Add getBsweep for displacement * Development (magpylib#108) * Update getBsweep for collection (magpylib#89) - Remove Displacement Input for getBsweep in Collection - Add multiprocessing disable flag - Add tests * Complete replacement of the PM_Box field with fixed and fast version (magpylib#91) * fixed all remaining fields, no more singularities, all magnet surfaces and all positions directly on currents give NaN (magpylib#97) * Fix Line not accepting numpy array for vertices magpylib#98 (magpylib#99) - Add two numpy array cases for valid input - Add test - Add test comments * Solidify Testing Harness (magpylib#100) * added testing examples for field calculations and basic classes * Add PMBox inside/Outside tests * Add currentLine field outside test * Add error message to Collection * Add fundamental current loop field tests * Add fundamental current line field tests * Add fundamental magnet loop field tests * Add fundamental moment dipole field tests * Add rotation and rotation+getB tests for Currents * Add rotation and rotation+getB tests for magnets * Add rotation and rotation+getB tests for moments * Add edge, corner, face tests for Cube - Fixed BfieldBox_inside to match inside tests rather than corners * Add currentLine segment, middle and line tests * Add singularity catch test cases to Cylinder, Sphere * Add singularity catch test cases to Currents * Add singularity catch test cases to Dipole * Add mixed input, duplicate warning, removal and motion tests to Collection magpylib#95 - Added comments to other tests * Add rotation,translation and setPosition/Orientation tests for RCS magpylib#94 - Add comments to RCS tests - Remove duplicate tests * Add public math package tests * fix bug in type testing for base - Was not picking up on faulty axis definitions * Add missing edge test to Cylinder field * Add import of current and magnet source for test coverage * Add reachable "bad Angle" systemerror catch for base - Add tests for most catches * Remove redudant pos argument from currentLine test * Remove very old code block from collection - Multicore remains, moved to getBsweep * Remove old, unused utility functions * Add test for adding a list while duplicate warnings are off. * Fixed the small digits problem. when sweepin additions like .5-.55 give .0500000000000000012 which results in non-special case evaluation. However, the square then kills the small digit resulting in a 1/0 (magpylib#104) * fixed the rounding problem .5-.55 for remaining field calculations (magpylib#107) * Missing tests (magpylib#106) * added testing examples for field calculations and basic classes * Add PMBox inside/Outside tests * Add currentLine field outside test * Add error message to Collection * Add fundamental current loop field tests * Add fundamental current line field tests * Add fundamental magnet loop field tests * Add fundamental moment dipole field tests * Add rotation and rotation+getB tests for Currents * Add rotation and rotation+getB tests for magnets * Add rotation and rotation+getB tests for moments * Add edge, corner, face tests for Cube - Fixed BfieldBox_inside to match inside tests rather than corners * Add currentLine segment, middle and line tests * Add singularity catch test cases to Cylinder, Sphere * Add singularity catch test cases to Currents * Add singularity catch test cases to Dipole * Add mixed input, duplicate warning, removal and motion tests to Collection magpylib#95 - Added comments to other tests * Add rotation,translation and setPosition/Orientation tests for RCS magpylib#94 - Add comments to RCS tests - Remove duplicate tests * Add public math package tests * fix bug in type testing for base - Was not picking up on faulty axis definitions * Add missing edge test to Cylinder field * Add import of current and magnet source for test coverage * Add reachable "bad Angle" systemerror catch for base - Add tests for most catches * Remove redudant pos argument from currentLine test * Remove very old code block from collection - Multicore remains, moved to getBsweep * Remove old, unused utility functions * Add test for adding a list while duplicate warnings are off. * Add missing tests for Cylinder * Add missing tests for CurrentLoop * Add comment to getB_raw test * Modify rounding edge case in Box class * working on doku2 * add images/sourceBasics * doku * doku * mmm * doku * doku * doku * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * 'doku' * Fix image path for Guide after page structure adjustment * 'doku' * fix path for install images * fix path for examples file * Add new explanation gifs * 'doku' * 'doku' * 'doku' * doku * doku * Update documentation gifs for manipulation functions * 'doku' * finish documentation, adjust image paths * 'doku' * doku * doku * doku * doku * doku * doku * Fix warnings in directory structure update * doku * Add sweep input visualization * doku * test doku vector graphics * Change "Class Variables" to "Attribute/Property" * Update Collection section - Add note about getB sweep - List kwargs for displaySystem - Fix typo * Update Markdown TOC in documentation document * use source_vars_methos svg image * fix typo in figure * Add matlab example * Add matlab TOC, add install to hidden section * Fix broken example in displaySystem docstring * Add multiprocessing guard to example in guide * Fix misspelling in matlab example * fix weird characters in matlab script * Fix line length on index * Add Readme info and Windows make script * Add tests readme * Add input reference to readme * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Add SAL logo * Remove wrong info about magnet interaction * Update collection docstring * Add developer guide drafts * Update dev guide, getting started
1 parent 883a8d9 commit 0519358

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+6294
-124
lines changed
 

‎docs/README.md

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,59 @@
1-
To be implemented
1+
## About magPyLib Documentation
2+
3+
- Documentation is done with [Sphinx](http://www.sphinx-doc.org/en/master/) v1.8.2.
4+
- Sphinx configuration is [conf.py](./conf.py);
5+
- Docstring format is under the [Numpy Convention](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html).
6+
- Sphinx is configured to read Docstring information from the codebase and convert it into pages utilizing the [autodoc extension](http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html).
7+
8+
- These generated files are created at build time and put into a folder called `_autogen`
9+
10+
- Handwritten document pages and guides are kept in the [_pages](./_pages) folder.
11+
- They use a combination of [Markdown](https://commonmark.org/help/) and [restructuredText](http://docutils.sourceforge.net/docs/ref/rst/directives.html), utilizing [recommonmark](https://github.com/rtfd/recommonmark) as interface.
12+
- These documents are converted to `.html` files by Sphinx during build time.
13+
14+
- Example code with visual output **generated during build time** are kept in the [pyplots](./pyplots) folder.
15+
- This utilizes the Matplotlib's [plot directive for restructuredText](https://matplotlib.org/devel/plot_directive.html), placing the code and its graphical output when it is referenced within the directive in the documentation pages.
16+
17+
- Images, web code and videos are kept in the [_static](./_static) folder.
18+
19+
---
20+
21+
### Building Locally
22+
23+
This repository is set up to be easily built on [ReadTheDocs](https://readthedocs.org/) as the codebase is updated.
24+
25+
##### To build locally on Linux,
26+
27+
1. [Install Sphinx](http://www.sphinx-doc.org/en/master/usage/installation.html)
28+
2. Install the dependencies on [requirements.txt](./requirements.txt):
29+
```
30+
pip install requirements.txt
31+
```
32+
33+
34+
3. Run [make](http://man7.org/linux/man-pages/man1/make.1.html) to build the documentation:
35+
36+
```bash
37+
38+
make html
39+
```
40+
41+
This will create a `_build` folder with an `index.html`, containing the built documentation webpage structure.
42+
43+
---
44+
45+
##### To build locally on Windows,
46+
47+
1. [Install Sphinx](http://www.sphinx-doc.org/en/master/usage/installation.html)
48+
2. Install the dependencies on [requirements.txt](./requirements.txt):
49+
```
50+
pip install -r requirements.txt
51+
```
52+
53+
3. Build the documentation with the `.bat` script:
54+
55+
```bash
56+
57+
make.bat html
58+
```
59+

‎docs/_pages/0_documentation.md

Lines changed: 315 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)