Skip to content

Commit 8f7986d

Browse files
committed
Update documentation for release 2.0
1 parent d81408c commit 8f7986d

File tree

5 files changed

+38
-31
lines changed

5 files changed

+38
-31
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# IMAS-Python
22

3-
IMAS-Python is a pure-python library to handle arbitrarily nested data structures.
4-
It is designed for, but not necessarily bound to, interacting with Interface
5-
Data Structures (IDSs) as defined by the Integrated Modelling & Analysis Suite (IMAS)
3+
IMAS-Python (formerly known as IMASPy its for versions < 2) is a pure-python library to handle
4+
arbitrarily nested data structures. It is designed for, but not necessarily bound to, interacting
5+
with Interface Data Structures (IDSs) as defined by the Integrated Modelling & Analysis Suite (IMAS)
66
Data Model.
77

88

docs/source/changelog.rst

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ What's new in IMAS-Python 2.0.0
99
Breaking change
1010
'''''''''''''''
1111

12-
The package name was changed from ``imaspy`` to ``imas`` while porting the code to GitHub. This shall only affect the import statements in your code.
12+
The package name was changed from ``imaspy`` to ``imas`` while porting the code to `GitHub <https://github.com/iterorganization/IMAS-Python>`__. This shall only affect the import statements in your code.
1313

1414
New features and improvements
1515
'''''''''''''''''''''''''''''
@@ -23,7 +23,7 @@ New features and improvements
2323
- Updating the README, CONTRIBUTING guidelines and documentation after making the code open access.
2424

2525

26-
What's new in IMAS-Python 1.2.0
26+
What's new in IMASPy 1.2.0
2727
-------------------------------
2828

2929
New features and improvements
@@ -43,7 +43,7 @@ Bug fixes
4343

4444

4545

46-
What's new in IMAS-Python 1.1.1
46+
What's new in IMASPy 1.1.1
4747
-------------------------------
4848

4949
This is a small release that mainly fixes issues related to the recent Data
@@ -59,7 +59,7 @@ Bug fixes
5959
Dictionary 4.0.0 and 3.42.0. In other cases, the Data Dictionary version is
6060
now explicitly indicated.
6161

62-
- :issue:`IMAS-5560`: Fix a bug where IMAS-Python would not correctly recognize that
62+
- :issue:`IMAS-5560`: Fix a bug where IMASPy would not correctly recognize that
6363
the UDA backend is used.
6464
- :issue:`IMAS-5541`: Fix a bug when converting a closed contour to Data
6565
Dictionary version 4.0.0.
@@ -69,15 +69,15 @@ Bug fixes
6969
recent Data Dictionary version than the on-disk data was stored with.
7070

7171

72-
What's new in IMAS-Python 1.1
72+
What's new in IMASPy 1.1
7373
-----------------------------
7474

7575
New features
7676
''''''''''''
7777

7878
- :ref:`1.1/improved performance`.
7979
- :ref:`1.1/improved conversion`.
80-
- IMAS-Python 1.1 adds support for Identifiers defined by the Data Dictionary. This
80+
- IMASPy 1.1 adds support for Identifiers defined by the Data Dictionary. This
8181
functionality is described in detail in :ref:`Identifiers`.
8282
- Support for the new
8383
:py:const:`~imas.ids_defs.FLEXBUFFERS_SERIALIZER_PROTOCOL` that is
@@ -92,7 +92,7 @@ New features
9292
netCDF file, which can be used for sharing and/or archiving data.
9393

9494
This feature is in `preview` status, meaning that it may change in upcoming
95-
minor releases of IMAS-Python.
95+
minor releases of IMASPy.
9696

9797
- Additional utility functions in :py:mod:`imas.util`:
9898

@@ -111,18 +111,18 @@ New features
111111
- :py:func:`imas.util.get_data_dictionary_version` returns the Data
112112
Dictionary version for which an IDS was created.
113113

114-
- Add support for IMAS Access Layer Core 5.2 and later. IMAS-Python can now be used
114+
- Add support for IMAS Access Layer Core 5.2 and later. IMASPy can now be used
115115
with just the Access Layer Core package available, the full AL-Python HLI is
116116
no longer required.
117117

118118
Since the Access Layer Core is now installable with ``pip`` as well (requires
119119
access to the git repository on
120-
`<https://github.com/iterorganization/imas-core>`__), you can install
121-
``imas`` and ``imas_core`` in one go with:
120+
`<https://git.iter.org/projects/IMAS/repos/al-core/>`__), you can install
121+
``imaspy`` and ``imas_core`` in one go with:
122122

123123
.. code-block:: bash
124124
125-
pip install 'imas[imas-core] @ git+ssh://[email protected]/iterorganization/imas-core.git'
125+
pip install 'imaspy[imas-core] @ git+ssh://[email protected]/iterorganization/imaspy.git'
126126
127127
- A diff tool for IDSs: :py:func:`imas.util.idsdiff`.
128128
- Implement ``==`` equality checking for IDS Structures and Arrays of Structures
@@ -131,12 +131,12 @@ New features
131131
backend.
132132

133133
During a :py:meth:`~imas.db_entry.DBEntry.get` or
134-
:py:meth:`~imas.db_entry.DBEntry.get_slice`, IMAS-Python first reads the version
134+
:py:meth:`~imas.db_entry.DBEntry.get_slice`, IMASPy first reads the version
135135
of the Data Dictionary that was used to store the IDS. When this version is
136-
not known to IMAS-Python, an error is raised. This error can now be ignored by
136+
not known to IMASPy, an error is raised. This error can now be ignored by
137137
setting the parameter
138138
:py:param:`~imas.db_entry.DBEntry.get.ignore_unknown_dd_version` to
139-
``True``, and IMAS-Python will do its best to load the data anyway.
139+
``True``, and IMASPy will do its best to load the data anyway.
140140

141141
- A new command line tool exists for analyzing which Data Dictionary fields are
142142
used in provided Data Entries. This tool is explained in detail in
@@ -150,7 +150,7 @@ Breaking changes
150150

151151
.. note::
152152

153-
We attempt to keep the public API of IMAS-Python stable with minor releases. The
153+
We attempt to keep the public API of IMASPy stable with minor releases. The
154154
following breaking change is the result of an upgrade of the IMAS Access Layer.
155155

156156
- Starting with Access Layer 5.2 or newer, the Access Layer will raise
@@ -161,8 +161,8 @@ Breaking changes
161161
You may need to update the :py:class:`Exception` classes in ``try/except``
162162
blocks to the new Exception classes raised by ``imas_core``.
163163

164-
When using an older version of the Access Layer, the behaviour of IMAS-Python is no
165-
different than in IMAS-Python 1.0.
164+
When using an older version of the Access Layer, the behaviour of IMASPy is no
165+
different than in IMASPy 1.0.
166166

167167

168168
Bug fixes
@@ -176,10 +176,10 @@ Bug fixes
176176
- Fixed a bug with :py:func:`~imas.ids_toplevel.IDSToplevel.serialize` when
177177
the IDS is in a non-default Data Dictionary version.
178178
- Fixed a bug when assigning ``nan`` to a FLT_0D, which would lead to a
179-
confusing and incorrect log message in IMAS-Python 1.0.
180-
- Fixed incorrect oldest supported DD version. Previously IMAS-Python indicated that
179+
confusing and incorrect log message in IMASPy 1.0.
180+
- Fixed incorrect oldest supported DD version. Previously IMASPy indicated that
181181
DD ``3.21.1`` was supported, however ``3.22.0`` is the oldest Data Dictionary
182-
tested (and provided) with IMAS-Python. :py:attr:`imas.OLDEST_SUPPORTED_VERSION`
182+
tested (and provided) with IMASPy. :py:attr:`imas.OLDEST_SUPPORTED_VERSION`
183183
has been updated to reflect this.
184184
- Fixed a bug when using numpy functions, such as
185185
:external:py:func:`numpy.isclose` on scalar numbers. Previously an error was
@@ -198,11 +198,11 @@ Improved performance
198198
''''''''''''''''''''
199199

200200
- Improved performance of :py:meth:`~imas.ids_toplevel.IDSToplevel.validate`.
201-
- Improved creation of IMAS-Python IDS objects. This made filling IDSs and loading
201+
- Improved creation of IMASPy IDS objects. This made filling IDSs and loading
202202
them with :py:meth:`~imas.db_entry.DBEntry.get` /
203203
:py:meth:`~imas.db_entry.DBEntry.get_slice` 10-20% faster.
204204
- Improved the performance of lazy loading. This is most noticeable with the
205-
``HDF5`` backend, which is now up to 40x faster than with IMAS-Python 1.0.
205+
``HDF5`` backend, which is now up to 40x faster than with IMASPy 1.0.
206206
- Improved the performance of :py:meth:`~imas.db_entry.DBEntry.get` /
207207
:py:meth:`~imas.db_entry.DBEntry.get_slice` /
208208
:py:meth:`~imas.db_entry.DBEntry.put` /
@@ -220,7 +220,7 @@ Converting IDSs between Data Dictionary versions has several improvements for
220220
recent DD versions. Further details on IDS conversion can be found in
221221
:ref:`Conversion of IDSs between DD versions`.
222222

223-
- The IMAS-Python Command Line Interface for converting Data Entries between different
223+
- The IMASPy Command Line Interface for converting Data Entries between different
224224
versions of the Data Dictionary has been improved. See :ref:`Command line tool
225225
reference` or execute ``imas convert --help`` in a shell for further
226226
details.
@@ -230,7 +230,7 @@ recent DD versions. Further details on IDS conversion can be found in
230230
For example, in the ``pulse_schedule`` IDS, the node
231231
``ec/beam/power_launched/reference`` in Data Dictionary ``3.40.0`` was renamed
232232
from ``ec/launcher/power/reference/data`` in Data Dictionary ``3.39.0``. This
233-
use case is now supported by IMAS-Python.
233+
use case is now supported by IMASPy.
234234

235235
- Automatically convert data between 0D and 1D when possible (`IMAS-5170
236236
<https://jira.iter.org/browse/IMAS-5170>`__).

docs/source/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ data structures. IMAS-Python is designed for, but not necessarily bound to,
1111
interacting with Interface Data Structures (IDSs) as defined by the
1212
Integrated Modelling & Analysis Suite (IMAS) Data Model.
1313

14+
.. note::
15+
16+
IMAS-Python was formerly known as IMASPy, and was renamed with the release
17+
of the major version 2.
18+
1419
It provides:
1520

1621
- An easy-to-install and easy-to-get started package by

docs/source/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This is how to run the IMAS-Python test suite:
5656
# inside the IMAS-Python git repository
5757
pytest imas --mini
5858
59-
# run with a specific backend
59+
# run with a specific backend, requires IMAS-Core installed
6060
pytest imas --ascii --mini
6161
6262
And to build the IMAS-Python documentation, execute:

docs/source/intro.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Load and store an IDS to disk with IMAS-Core
9595
:py:meth:`~imas.db_entry.DBEntry.put_slice` and
9696
:py:meth:`~imas.db_entry.DBEntry.get_sample` (with IMAS-Core>=5.4).
9797
- If you can't have access to it, you can save IDS to disk with the built-in
98-
netCDF backend :ref:`Store and load an IDS to disk with netCDF`
98+
netCDF backend :ref:`Load and store an IDS to disk with netCDF`
9999

100100
To store an IDS to disk, we need to indicate the following URI to the
101101
IMAS-Core: ``imas:<backend>?path=<path_to_folder>`` or using the legacy query keys
@@ -129,8 +129,10 @@ can use ``<IDS>.get()`` to load IDS data from disk:
129129
>>> print(core_profiles2.ids_properties.comment.value)
130130
131131
132-
Load and store an IDS to disk with IMAS-Core
133-
''''''''''''''''''''''''''''''''''''''''''''
132+
.. _`Load and store an IDS to disk with netCDF`:
133+
134+
Load and store an IDS to disk with netCDF
135+
'''''''''''''''''''''''''''''''''''''''''
134136

135137
In IMAS-Python you do this as follows:
136138

0 commit comments

Comments
 (0)