Skip to content

Commit 8378573

Browse files
Fix whitespace and linelength warning for documentation
1 parent 8228e29 commit 8378573

File tree

8 files changed

+46
-17
lines changed

8 files changed

+46
-17
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ interacting with Interface Data Structures (IDSs) as defined by the
66
Integrated Modelling & Analysis Suite (IMAS) Data Model.
77

88
It provides:
9+
910
* An easy-to-install and easy-to-get started package by
1011
* Not requiring an IMAS installation
1112
* Not strictly requiring matching a Data Dictionary (DD) version
@@ -14,16 +15,19 @@ It provides:
1415
* Dynamically created in-memory pre-filled data trees from DD XML specifications
1516

1617
## A word of caution
18+
1719
This package is developed on [ITER bitbucket](https://git.iter.org/projects/IMAS/repos/imaspy).
1820
For user support, contact the IMAS team on the [IMAS user slack](https://imasusers.slack.com),
1921
open a [JIRA issue](https://jira.iter.org/projects/IMAS), or email the
2022
support team on imas-support@iter.org.
2123

2224
## Documentation
25+
2326
Documentation is autogenerated from the source using [Sphinx](http://sphinx-doc.org/)
2427
and can be found at the [ITER sharepoint](https://sharepoint.iter.org/departments/POP/CM/IMDesign/Code%20Documentation/IMASPy-doc/html/index.html)
2528

2629
The documentation can be manually generated by installing sphinx and running:
30+
2731
```bash
2832
make -C docs html
2933
```
@@ -50,15 +54,16 @@ your local system. First make sure you can access the
5054
[ITER IMAS Access Layer repository](https://git.iter.org/projects/IMAS/repos/access-layer/browse)
5155
using SSH `ssh://git@git.iter.org/imas/access-layer.git`.
5256

53-
5457
## Where does IMASPy live in IMAS ecosystem?
58+
5559
IMASPy tries to fill a slightly different niche than existing tools. It aims
5660
to be an _alternative_ to Python HLI instead of a wrapper. It tries to be
5761
dynamic instead of pre-generated. Is hopes to be extendable instead of
5862
wrappable.
5963

6064
A small, biased, and wildly incomplete of some common IMAS tools, and
6165
where they live with respect to IMASPy.
66+
6267
``` mermaid
6368
classDiagram
6469
MDSPLUS_DATABASE .. LL_AL : puts

docs/source/_templates/autosummary/accessor.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.. Taken from xarray
1+
..
2+
Taken from xarray
3+
24
{{ fullname }}
35
{{ underline }}
46

docs/source/_templates/autosummary/accessor_attribute.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.. Taken from xarray
1+
..
2+
Taken from xarray
3+
24
{{ fullname }}
35
{{ underline }}
46

docs/source/_templates/autosummary/accessor_callable.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.. Taken from xarray
1+
..
2+
Taken from xarray
3+
24
{{ fullname }}
35
{{ underline }}
46

docs/source/_templates/autosummary/accessor_method.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.. Taken from xarray
1+
..
2+
Taken from xarray
3+
24
{{ fullname }}
35
{{ underline }}
46

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.. Taken from xarray
1+
..
2+
Taken from xarray
3+
24
{% extends "!autosummary/base.rst" %}

docs/source/api_overview.rst

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMASPy in the IMAS ecosystem
2-
=================
2+
============================
33

44
.. image:: imaspy_ecosystem.png
55

@@ -9,8 +9,9 @@ read time, all files in the proper paths named IDSDef.zip are searched for data
99
dictionary versions to support. Alternatively explicit paths to xml files can be
1010
used.
1111

12+
1213
IMASPy nested structure design
13-
=================
14+
==============================
1415

1516
.. image:: imaspy_structure.png
1617

@@ -33,7 +34,7 @@ https://numpy.org/doc/stable/reference/generated/numpy.lib.mixins.NDArrayOperato
3334

3435

3536
IMASPy usage
36-
=================
37+
============
3738

3839
The IMASPy project defines a class :py:class:`IDSRoot` which can be instantiated
3940
with a DD version number or xml_path. It reads the XML file and recreates the
@@ -74,7 +75,8 @@ An example of instantiating this structure and opening an AL backend is:
7475

7576

7677
Loading multiple DD versions in the same environment
77-
=============
78+
====================================================
79+
7880
The main change necessary to enable loading multiple DD versions into different
7981
:py:class:`IDSRoots` is to enable the finding of the relevant
8082
:py:class:`IDSDef.xml` files. In the ‘classical’ IMAS approach a single
@@ -96,8 +98,10 @@ is useful for development.
9698
Automated tests have been provided that check the loading of all of the DD
9799
versions tagged in the data-dictionary git repository.
98100

101+
99102
Extending the DD set
100-
---------
103+
--------------------
104+
101105
A new command has been defined python setup.py build_DD which fetches new tags
102106
from git and builds IDSDef.zip
103107

@@ -112,7 +116,8 @@ All paths are searched in order.
112116

113117

114118
Conversion of IDSes between DD versions
115-
===============
119+
=======================================
120+
116121
The conversion between DD versions hinges on the ability to read and write to a
117122
backend data store in a different version than the current DD. To enable this, IMASPy
118123
needs to read both the ‘main’ in-memory DD, as well as the ‘backend’ DD. This is
@@ -165,8 +170,10 @@ backend is opened, the DD version of the IDS is unknown. At the time of
165170
`get()` the DD version is found by `read_data_dictionary_version`, which
166171
reads :py:class:`IDS_properties/version_put/data_dictionary`
167172

173+
168174
Implicit conversions:
169-
-----------
175+
---------------------
176+
170177
- Add field
171178
- No data can be converted
172179
- Delete field
@@ -176,12 +183,14 @@ Implicit conversions:
176183
- Move field
177184
- Handled by searching for change_nbc_previous_name on backend and current XML
178185
- This is complex, since we may have to search many elements to find the one
179-
which was renamed. Changing depths makes this harder.
186+
which was renamed. Changing depths makes this harder.
180187
- Currently implemented up to a single depth change, though multiple are
181188
possible within this design
182189

190+
183191
There are some limitations of the change_nbc paradigm:
184-
------------
192+
------------------------------------------------------
193+
185194
- Forward only
186195
- May require reading an arbitrary number of intermediate versions
187196
- Does not cover more complex migrations
@@ -194,6 +203,7 @@ occurs the conversion can easily be done in multiple steps.
194203

195204
Time slicing
196205
============
206+
197207
The lowlevel API provides `ual_write_slice_data` to write only a slice (in the
198208
last dimension, time) to the backend, as well as `ual_begin_slice_action`. After
199209
that normal `get()` can be used. We have implemented time slicing support, with
@@ -233,8 +243,10 @@ verifying as a global array Reading slice by slice (single slice only) The tests
233243
pass on the memory and MDSPlus backend (the ASCII backend does not support
234244
slicing).
235245

246+
236247
Resampling
237-
============
248+
==========
249+
238250
For resampling of data we stick close to the numpy and scipy APIs. The relevant
239251
method signatures are reproduced here:
240252

@@ -318,8 +330,9 @@ Or as such (explicit in-memory copy + interpolation, producing a new data leaf/c
318330
319331
Implementation unit tests can be found in `test_latest_dd_resample.py`.
320332

333+
321334
Alternative resampling methods
322-
-------
335+
------------------------------
323336

324337
.. code-block:: python
325338

docs/source/installing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ We are all developers, install imaspy in `pip editable <https://pip.pypa.io/en/s
4444
We should now be able to run the tests
4545

4646
.. code-block:: bash
47+
4748
pip install --user -r requirements_test.txt
4849
pytest imaspy/ --mini
4950

0 commit comments

Comments
 (0)