Skip to content

Releases: xsuite/xobjects

Xobjects version 0.1.30

30 Nov 19:25
ca00dee

Choose a tag to compare

Xobjects version 0.1.28

30 Nov 15:44

Choose a tag to compare

Changes:

  • Implement to_nparray and to_json and add suitable tests for xobjects. The method to_json returns a dict that is json-compliant from which the xobjects can be regenerated simply by passing the dict to the constructor.
  • Avoid memcopy (where possible) in a hybrid class.
  • Make contexts visible in test printout. Parametrize tests over contexts simply by adding @for_all_test_contexts or @for_all_test_contexts(excluding: Iterable[str] | str) on them, the context is passed as test_context to the test.
  • Minor fixes of typos.

Full Changelog: v0.1.27...v0.1.28

Xobjects version 0.1.27

11 Nov 21:13

Choose a tag to compare

Changes:

  • Add _update method to class to avoid overwriting arrays.
  • Ensure that NULL is defined in pyopencl contexts.

Full Changelog: v0.1.26...v0.1.27

Xobjects version 0.1.26

01 Nov 07:57

Choose a tag to compare

Changes:

  • Fix: pyopencl deprecated syntax

Full Changelog: v0.1.25...v0.1.26

Xobjects version 0.1.25

16 Oct 07:05

Choose a tag to compare

Changes:

  • Version number accessible as xobjects.__version__
  • Fix in Array C API generation
  • Buffer/context consistency check on allocate_on_buffer

Xobjects version 0.1.24

30 Sep 19:26

Choose a tag to compare

Changes:

  • Faster array initialisation
  • Introduced xobjects.get_a_buffer function

Xobjects version 0.1.23

29 Sep 08:27

Choose a tag to compare

Changes:

  • Rename of several methods
  • Use offset=0 as default of from_buffer.

Xobjects version 0.1.22

17 Sep 13:43

Choose a tag to compare

Changes:

Improve HybridClass robustness:

  • Correctly propagate xobjects and python attributes in assignment and initialisation within nested data structures.
  • Prevent object move for nested objects and in the presence of references
  • Referencing objects across buffers now results in an error.
  • Fix in rename mechanism.

Xobjects version 0.1.21

13 Aug 07:39

Choose a tag to compare

Changes

Improved and reorganised management of sources and dependencies:

  • Replaced extra_sources and _extra_c_source with _extra_c_sources both in xobjects.Struct and in xobjects.HybridClass.
  • Kernel declarations can be made through the _kernels dictionary when creating subclasses of xobjects.Struct and in xobjects.HybridClass. The kernels can be compiled by the compile_kernels(...) method.
  • Dependencies on additional xobjects types can be provided through the _depends_on list when creating subclasses of xobjects.Struct and in xobjects.HybridClass. These are taken into account when compiling the kernels.
  • Context.add_kernels can apply a user-provided list of functions to the source code before code specialization.
  • Renamed HybridClass.XoStruct to HybridClass._XoStruct.
  • Renamed HybridClass._move_to to HybridClass.move.

Xobjects version 0.1.20

11 Aug 17:37

Choose a tag to compare

Changes:

  • Removed dress function and renamed DressedStruct to HybridClass