Skip to content

Make Python serialization usable again #636

@MaxBetzDLR

Description

@MaxBetzDLR

Feature description

The python package memilio-simulation already implements methods for binding classes that support serilization in c++ and a serilizer. Nevertheless serilization is not usable for most classes in Python. This is due to the fact, that in order to activate it in Python the method of binding need to be changed to the one for serializable classes.
To make it better usable we want to make the decision if a class can be transfered to python with serialization or not at compile time. Thus in future all classes need to be declared for python through a pymio method instead, which internally deduces the way of binding, instead of using either the pybind11 method or pymio method for serialisable classes.
As a result all future classes are automatically serilisable in python, if that is the case in c++, without needing to change any of the binding code.

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project.

Metadata

Metadata

Assignees

Labels

class::improvementCleanup that doesn't affect functionalityloc::python interfaceThis issue concerns the python interface to the backend implementation.

Type

No type

Projects

Status

Done (Total)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions