xobjects 0.2.8__tar.gz → 0.2.9__tar.gz

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.
Files changed (31) hide show
  1. {xobjects-0.2.8/xobjects.egg-info → xobjects-0.2.9}/PKG-INFO +1 -1
  2. xobjects-0.2.9/xobjects/_version.py +1 -0
  3. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/hybrid_class.py +7 -1
  4. {xobjects-0.2.8 → xobjects-0.2.9/xobjects.egg-info}/PKG-INFO +1 -1
  5. xobjects-0.2.8/xobjects/_version.py +0 -1
  6. {xobjects-0.2.8 → xobjects-0.2.9}/LICENSE +0 -0
  7. {xobjects-0.2.8 → xobjects-0.2.9}/pyproject.toml +0 -0
  8. {xobjects-0.2.8 → xobjects-0.2.9}/setup.cfg +0 -0
  9. {xobjects-0.2.8 → xobjects-0.2.9}/setup.py +0 -0
  10. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/__init__.py +0 -0
  11. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/_patch_pyopencl_array.py +0 -0
  12. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/array.py +0 -0
  13. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/capi.py +0 -0
  14. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/context.py +0 -0
  15. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/context_cpu.py +0 -0
  16. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/context_cupy.py +0 -0
  17. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/context_pyopencl.py +0 -0
  18. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/general.py +0 -0
  19. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/linkedarray.py +0 -0
  20. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/ref.py +0 -0
  21. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/scalar.py +0 -0
  22. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/specialize_source.py +0 -0
  23. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/string.py +0 -0
  24. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/struct.py +0 -0
  25. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/test_helpers.py +0 -0
  26. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/typeutils.py +0 -0
  27. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects/union.py +0 -0
  28. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects.egg-info/SOURCES.txt +0 -0
  29. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects.egg-info/dependency_links.txt +0 -0
  30. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects.egg-info/requires.txt +0 -0
  31. {xobjects-0.2.8 → xobjects-0.2.9}/xobjects.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xobjects
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: In-memory serialization and code generator for CPU and GPU
5
5
  Home-page: https://xsuite.readthedocs.io/
6
6
  Download-URL: https://pypi.python.org/pypi/xobjects
@@ -0,0 +1 @@
1
+ __version__ = "0.2.9"
@@ -301,7 +301,13 @@ class HybridClass(metaclass=MetaHybridClass):
301
301
 
302
302
  if hasattr(obj, "_store_in_to_dict"):
303
303
  for nn in obj._store_in_to_dict:
304
- out[nn] = getattr(obj, nn)
304
+ ww = getattr(obj, nn)
305
+ if hasattr(ww, "to_dict"):
306
+ out[nn] = ww.to_dict()
307
+ elif hasattr(ww, "_to_dict"):
308
+ out[nn] = ww._to_dict()
309
+ else:
310
+ out[nn] = ww
305
311
 
306
312
  return out
307
313
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xobjects
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: In-memory serialization and code generator for CPU and GPU
5
5
  Home-page: https://xsuite.readthedocs.io/
6
6
  Download-URL: https://pypi.python.org/pypi/xobjects
@@ -1 +0,0 @@
1
- __version__ = "0.2.8"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes