xsuite / xobjects

Library to create and manipulate serialized objects in CPU and GPU memory and to compile code on these platforms.
https://xsuite.readthedocs.io
Apache License 2.0
4 stars 15 forks source link

To dict #118

Closed freddieknets closed 1 year ago

freddieknets commented 1 year ago

Description

Very small fix: the to_dict() functionality in the HybridClass correctly cascades recursively in case one of its fields is a HybridClass itself (more correctly, if the field has a to_dict or _to_dict property). However, this functionality was not present in case the field was generated from the _store_in_to_dict property. This cascading is now added.

Checklist

Mandatory:

Optional: