Releases: xsuite/xobjects
Releases · xsuite/xobjects
Xobjects version 0.1.30
Xobjects version 0.1.28
Changes:
- Implement
to_nparrayandto_jsonand add suitable tests for xobjects. The methodto_jsonreturns 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_contextsor@for_all_test_contexts(excluding: Iterable[str] | str)on them, the context is passed astest_contextto the test. - Minor fixes of typos.
Full Changelog: v0.1.27...v0.1.28
Xobjects version 0.1.27
Changes:
- Add _update method to class to avoid overwriting arrays.
- Ensure that
NULLis defined in pyopencl contexts.
Full Changelog: v0.1.26...v0.1.27
Xobjects version 0.1.26
Xobjects version 0.1.25
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
Changes:
- Faster array initialisation
- Introduced
xobjects.get_a_bufferfunction
Xobjects version 0.1.23
Changes:
- Rename of several methods
- Use
offset=0as default of from_buffer.
Xobjects version 0.1.22
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
Changes
Improved and reorganised management of sources and dependencies:
- Replaced
extra_sourcesand_extra_c_sourcewith_extra_c_sourcesboth inxobjects.Structand inxobjects.HybridClass. - Kernel declarations can be made through the
_kernelsdictionary when creating subclasses ofxobjects.Structand inxobjects.HybridClass. The kernels can be compiled by thecompile_kernels(...)method. - Dependencies on additional xobjects types can be provided through the
_depends_onlist when creating subclasses ofxobjects.Structand inxobjects.HybridClass. These are taken into account when compiling the kernels. Context.add_kernelscan apply a user-provided list of functions to the source code before code specialization.- Renamed
HybridClass.XoStructtoHybridClass._XoStruct. - Renamed
HybridClass._move_totoHybridClass.move.
Xobjects version 0.1.20
Changes:
- Removed
dressfunction and renamedDressedStructtoHybridClass