imas-python 0.1.dev1637__py3-none-any.whl → 0.1.dev1643__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of imas-python might be problematic. Click here for more details.

imas/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.dev1637'
16
- __version_tuple__ = version_tuple = (0, 1, 'dev1637')
15
+ __version__ = version = '0.1.dev1643'
16
+ __version_tuple__ = version_tuple = (0, 1, 'dev1643')
imas/assets/IDSDef.zip CHANGED
Binary file
@@ -164,7 +164,7 @@ class NC2IDS:
164
164
 
165
165
  def validate_variables(self) -> None:
166
166
  """Validate that all variables in the netCDF Group exist and match the DD."""
167
- disable_validate = os.environ.get("IMASPY_DISABLE_NC_VALIDATE")
167
+ disable_validate = os.environ.get("IMAS_DISABLE_NC_VALIDATE")
168
168
  if disable_validate and disable_validate != "0":
169
169
  logger.info(
170
170
  "NetCDF file validation disabled: "
imas/dd_zip.py CHANGED
@@ -7,13 +7,13 @@ The zip file contains files as
7
7
  * `data-dictionary/3.29.0.xml`
8
8
 
9
9
  multiple paths are checked. See `ZIPFILE_LOCATIONS`.
10
- First the environment variable IMASPY_DDZIP is checked.
10
+ First the environment variable IMAS_DDZIP is checked.
11
11
  If that exists and points to a file we will attempt to open it.
12
12
  Then, IDSDef.zip is searched in site-packages, the current folder,
13
13
  in .config/imas/ (`$$XDG_CONFIG_HOME`) and in
14
14
  the assets/ folder within the imas-python package.
15
15
 
16
- 1. `$$IMASPY_DDZIP`
16
+ 1. `$$IMAS_DDZIP`
17
17
  2. The virtual environment
18
18
  3. USER_BASE`imas/IDSDef.zip`
19
19
  4. All `site-packages/imas/IDSDef.zip`
@@ -70,14 +70,14 @@ def _get_xdg_config_dir():
70
70
 
71
71
  def _generate_zipfile_locations() -> Iterator[Union[Path, Traversable]]:
72
72
  """Build a list of potential data dictionary locations.
73
- We start with the path (if any) of the IMASPY_DDZIP env var.
73
+ We start with the path (if any) of the IMAS_DDZIP env var.
74
74
  Then we look for IDSDef.zip in the current folder, in the
75
75
  default XDG config dir (~/.config/imas/IDSDef.zip) and
76
76
  finally in the assets distributed with this package.
77
77
  """
78
78
  zip_name = "IDSDef.zip"
79
79
 
80
- environ = os.environ.get("IMASPY_DDZIP")
80
+ environ = os.environ.get("IMAS_DDZIP")
81
81
  if environ:
82
82
  yield Path(environ).resolve()
83
83
 
imas/setup_logging.py CHANGED
@@ -57,7 +57,7 @@ def connect_formatter(logger):
57
57
  logger = logging.getLogger("imas")
58
58
  connect_formatter(logger)
59
59
 
60
- loglevel = os.getenv("IMASPY_LOGLEVEL") or "INFO"
60
+ loglevel = os.getenv("IMAS_LOGLEVEL") or "INFO"
61
61
  logger.setLevel(loglevel)
62
62
 
63
63
  if __name__ == "__main__":
@@ -50,7 +50,6 @@ def test_prepare_data_dictionaries():
50
50
 
51
51
  if _build_dir.exists():
52
52
  shutil.rmtree(_idsdef_unzipped_relpath)
53
- print(f"Removed directory: {_idsdef_unzipped_relpath}")
54
53
 
55
54
 
56
55
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: imas-python
3
- Version: 0.1.dev1637
3
+ Version: 0.1.dev1643
4
4
  Summary: Pythonic wrappers for the IMAS Access Layer
5
5
  Author: imas-python developers
6
6
  Author-email: Olivier Hoenen <olivier.hoenen@iter.org>
@@ -1,10 +1,10 @@
1
1
  imas/__init__.py,sha256=9OHpTf8gCl7BJVU7U2bf9kWatBNNAhFZdgoFPcHeNQU,878
2
2
  imas/__main__.py,sha256=2qXoC0HzV4xkPQAvdubHC4rnK3G6f_2PT9TkkCHYXk8,418
3
3
  imas/_util.py,sha256=FXX13glhmgSiw-0LtjH0xv3YlM3Pa9X4jl9yz9Uv7Vs,9484
4
- imas/_version.py,sha256=sVfWIkerXIm85U5srwwf8Hr_2YbxCOawfOkqUJfX1Bo,425
4
+ imas/_version.py,sha256=0xcxHsxylfNBfelBAGlwVZnpKrbllRTwGcH9AVwjQf8,425
5
5
  imas/db_entry.py,sha256=O76bfCfmH3jlZE8eJmnmPiDNqZYpwo3ooQeHOL83mE4,31767
6
6
  imas/dd_helpers.py,sha256=IFRmOWw0VyLuR9Xpe9VeVy1ANq5XpFF4m1rj9RtETKI,6275
7
- imas/dd_zip.py,sha256=Sz2xP-oWyhmmqEN-JGGNizieGZH8CJ6JlCjqN_0fMvw,10330
7
+ imas/dd_zip.py,sha256=6gQ91rlVsDaU1U6XXaEnaGyvI3ZgQ659GOgIYJLZH6M,10322
8
8
  imas/exception.py,sha256=iqsxl6M1gEjJO8YP9UBYt5OQk7faGx0EIs1XJ4YJ71U,3750
9
9
  imas/ids_base.py,sha256=zDckve7poXO9vbKPsi_17FjKMTKd6QADork7H7wIS7o,5439
10
10
  imas/ids_convert.py,sha256=OixW99Gpm77n0wj2RwlasFP_jzAN_wozrlCn_BtkbvM,38548
@@ -19,10 +19,10 @@ imas/ids_primitive.py,sha256=3s0y0nxPSXjAoXEYUvsmevWOqmfCBnct-ySr_f2oU9k,16810
19
19
  imas/ids_struct_array.py,sha256=BFBa1wSZFAlZguExCTA56D8RfnaLv-nbxDIz9fMhcGE,8292
20
20
  imas/ids_structure.py,sha256=0DRudIturYE2Aw_Jb22zBZCd_zyA0-lg8YOEI7Y_iso,13107
21
21
  imas/ids_toplevel.py,sha256=YHWZewK8JYf34pYzF_oooMILZAHgnuWCFtr0_JFjmzI,14915
22
- imas/setup_logging.py,sha256=auFmrFHh1CA6LVQVwo6WWebUIbCpA_7UedQ6G4h5JzM,1874
22
+ imas/setup_logging.py,sha256=McfIYupRQDxtL-lasTjH5F8BxBvncuZhcpzSDEwKtJQ,1872
23
23
  imas/training.py,sha256=JGYjpCubUJDb_Rg0QaaDhNkBHc4Qc376U9fRq24NVXc,1576
24
24
  imas/util.py,sha256=dG282-l7m2U_VhjZ0VnQ-BpsWrzgKSxUZ1AZf-_wDOY,17822
25
- imas/assets/IDSDef.zip,sha256=uzXw0HrTmSC7KFpT03uRmivRBqRYdQE4uZmr2AMcmHU,27383258
25
+ imas/assets/IDSDef.zip,sha256=rlDjLZZpb0i8ME9rTVaNrU4ddMsPB8MPvFqT0IwdlQ0,27383258
26
26
  imas/assets/IDSDef2MDSpreTree.xsl,sha256=V9eDmDnxe6oYhDP81gmdYip8cF2yST9dGxmZBaATLdA,7296
27
27
  imas/assets/IDS_fake_toplevel.xml,sha256=TJhukQuDHHVTW2U7fK_-KmTQiYOFZMY-ECZXBHQE2mk,18683
28
28
  imas/assets/IDS_minimal.xml,sha256=5B6c0J-WPzSChHWwpLPRkNawx9m6v8BM5nC0OQFnWcQ,1740
@@ -46,7 +46,7 @@ imas/backends/imas_core/uda_support.py,sha256=lxHzby6Fkkpn5j6yWpQrlqlwng-gA9O_hV
46
46
  imas/backends/netcdf/__init__.py,sha256=pyETe19IpVVezOS7mNzF_Zbt_eGoK8IWnQfG8P7V4CA,191
47
47
  imas/backends/netcdf/db_entry_nc.py,sha256=xx3GDeRbTpbsi2GW2wyaUFmrUKXjFJ0q4sSbMI_-WrQ,6828
48
48
  imas/backends/netcdf/ids2nc.py,sha256=rjF6L-JHrwFnOjI-NRBTv15JbHRk2moGukNUCaL_FKc,12742
49
- imas/backends/netcdf/nc2ids.py,sha256=bP7Qfl_b_wvpS8SwK_g-ReuBU4KvD6Spi33p528BSCQ,11881
49
+ imas/backends/netcdf/nc2ids.py,sha256=rAEzJCqcZfFTy_co75TmpoXN42O4LIuv0yjxnjBm-bo,11879
50
50
  imas/backends/netcdf/nc_metadata.py,sha256=pTOff1Zzk7uT1BGUV1cnDLVNo4WeTT-7JETR_9LvVIs,16175
51
51
  imas/backends/netcdf/nc_validate.py,sha256=gO6jpLsxfIv5hbtIi5MYtN1KtU9yQCVPgG8pHdK7iHQ,2256
52
52
  imas/command/cli.py,sha256=lzVV_PMXBd88J7DmDwaiWiiqMj_2rs5V8dc6kkbUDGw,8401
@@ -56,7 +56,7 @@ imas/command/timer.py,sha256=wvjHJBgkY1VRaRvCFuDDORzZOUV-Q7IxiTxlGzjXBz4,2328
56
56
  imas/test/test_all_dd_versions.py,sha256=8T9q9S7Vhwa96y6KUDv7HoeuOPlc6RovEhPZEseDoDs,790
57
57
  imas/test/test_cli.py,sha256=pBuAE4ICrCY920CqvHODgJ7Yr2uT1hiGCDQ1HPSTllU,1559
58
58
  imas/test/test_dbentry.py,sha256=xfC33VPHIb_B1hGcaLc5rELboeebGbGL_ptN2zZyAkA,4010
59
- imas/test/test_dd_helpers.py,sha256=eQF8EgTh2h46Waph2n3e_DYTA_wdAy76FihZpY3sToc,1743
59
+ imas/test/test_dd_helpers.py,sha256=HBzPuIlEv0FM5qz_w9-BpX0R_T2cnC0b5cGt8sw_kpQ,1679
60
60
  imas/test/test_dd_zip.py,sha256=SgKPufIvk3tK_Q4JpHKq57g0lKthEj1IgcdZ2c-IzwI,820
61
61
  imas/test/test_deepcopy.py,sha256=vYTwpEqRpi-G-xVSRWVIwLL_jBY7f6v31QPOU0e_FKs,606
62
62
  imas/test/test_exception.py,sha256=bL_JlWsdtT-emKkSHx1yFbDKLqWOx8piCFBNHJ4osig,408
@@ -101,9 +101,9 @@ imas/test/test_str_1d.py,sha256=d6GrmV4OYG9f4ludjZBmuqyKOM9XIExTqMh8aQ1UJcQ,3453
101
101
  imas/test/test_time_slicing.py,sha256=FwbdggRJ75Suc268-89daCSaVXhzl8pZZm3Od13EiR4,6959
102
102
  imas/test/test_uda_support.py,sha256=AmakuexebZfJ2-vk_DHfNRPwHmNM2RnwzXqT0eWwWJ0,338
103
103
  imas/test/test_util.py,sha256=BW5EbL-QDIrJNH7tjBgqOacJY0TXvMidXVKpIVZlv1I,6775
104
- imas_python-0.1.dev1637.dist-info/LICENSE.txt,sha256=RzxtV7MG0zbF6dDvQsaZ1OKsHZ7CRyeILenjUIol5rs,7651
105
- imas_python-0.1.dev1637.dist-info/METADATA,sha256=Gsodi8andHZ432YwTQSl-l-uALISkNKs7Rjkwq3SoRg,13446
106
- imas_python-0.1.dev1637.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
107
- imas_python-0.1.dev1637.dist-info/entry_points.txt,sha256=e8oXj2SLwyFEiBeJRaAXRc9EYQ8eHWWn7NWdjixjeDM,99
108
- imas_python-0.1.dev1637.dist-info/top_level.txt,sha256=_WFOlA1rmpYm0T73sNo5Ntvs7S3x4cR7UE8Oy5I5eJA,5
109
- imas_python-0.1.dev1637.dist-info/RECORD,,
104
+ imas_python-0.1.dev1643.dist-info/LICENSE.txt,sha256=RzxtV7MG0zbF6dDvQsaZ1OKsHZ7CRyeILenjUIol5rs,7651
105
+ imas_python-0.1.dev1643.dist-info/METADATA,sha256=bqeL5W9o5QmEQxvml8tI6d_DU2YZQvvwTxCZCePsHHk,13446
106
+ imas_python-0.1.dev1643.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
107
+ imas_python-0.1.dev1643.dist-info/entry_points.txt,sha256=e8oXj2SLwyFEiBeJRaAXRc9EYQ8eHWWn7NWdjixjeDM,99
108
+ imas_python-0.1.dev1643.dist-info/top_level.txt,sha256=_WFOlA1rmpYm0T73sNo5Ntvs7S3x4cR7UE8Oy5I5eJA,5
109
+ imas_python-0.1.dev1643.dist-info/RECORD,,