-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
class::bugBugs found in the softwareBugs found in the softwareloc::data handlingThis issue concerns any kind of data handling.This issue concerns any kind of data handling.loc::python interfaceThis issue concerns the python interface to the backend implementation.This issue concerns the python interface to the backend implementation.
Description
Bug description
A TimeSeries in the memilio-simulation package can be converted into a numpy array. This array is invalid as soon as the referenced Timeseries is invalid. This leads to undefined bahaviour when returning the numpy array from a function.
Version
Any
To reproduce
Steps to reproduce the bug:
- Create a TimeSeries inside a function, i.e. as result from simulate
- Create numpy array reference with .as_ndarray()
- return numpy array from function
- Leaving scope deletes referenced data and thus numpy array is invalid
Relevant log output
Add any relevant information, e.g. used compiler, screenshots.
Checklist
- Attached labels, especially loc:: or model:: labels.
- Linked to project
Metadata
Metadata
Assignees
Labels
class::bugBugs found in the softwareBugs found in the softwareloc::data handlingThis issue concerns any kind of data handling.This issue concerns any kind of data handling.loc::python interfaceThis issue concerns the python interface to the backend implementation.This issue concerns the python interface to the backend implementation.
Type
Projects
Status
Done (Total)