Skip to content

Commit cec6fdd

Browse files
maarten-icolivhoenen
authored andcommitted
Remove logic for building the Data Dictionary
The Data Dictionary definitions are now provided by the `imas-data-dictionaries` package.
1 parent e35187a commit cec6fdd

File tree

8 files changed

+25
-592
lines changed

8 files changed

+25
-592
lines changed

docs/source/multi-dd.rst

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,14 @@ Automated tests have been provided that check the loading of all of the DD
207207
versions tagged in the data-dictionary git repository.
208208

209209

210-
Extending the DD set
211-
''''''''''''''''''''
210+
Data Dictionary definitions
211+
'''''''''''''''''''''''''''
212212

213-
Use the command ``python setup.py build_DD`` to build a new ``IDSDef.zip``. This
214-
fetches all tags from the data dictionary git repository and builds the ``IDSDef.zip``.
213+
The Data Dictionary definitions used by IMAS-Python are provided by the `IMAS Data
214+
Dictionaries <http://pypi.org/project/imas-data-dictionaries/>`__ package.
215+
Please update this package if you need a more recent version of the data dictionary. For
216+
example, using ``pip``:
215217

216-
IMAS-Python searches for an ``IDSDef.zip`` in the following locations:
218+
.. code-block:: bash
217219
218-
1. The environment variable ``$IMAS_DDZIP`` (path to a zip file)
219-
2. The file ``./IDSDef.zip`` in the current working directory
220-
3. In the local configuration folder: ``~/.config/imas/IDSDef.zip``, or
221-
``$XDG_CONFIG_DIR/imas/IDSDef.zip`` (if the environment variable
222-
``$XDG_CONFIG_DIR`` is set)
223-
4. The zipfile bundled with the IMAS-Python installation: ``assets/IDSDef.zip``
224-
225-
All paths are searched in order when loading the definitions of a specific data
226-
dictionary version: the first zip file that contains the definitions of the requested
227-
version is used.
220+
pip install --upgrade imas-data-dictionaries

imas/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# Load the IMAS-Python IMAS AL/DD core
2121
from . import (
2222
db_entry,
23-
dd_helpers,
2423
dd_zip,
2524
util,
2625
)

imas/dd_helpers.py

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)