Zulko / ddeint

Scipy-based Delay Differential Equation (DDE) solver
Creative Commons Zero v1.0 Universal
36 stars 24 forks source link

Fix deprecation warning and array dtype problems #14

Closed vasilvas99 closed 2 months ago

vasilvas99 commented 1 year ago

The original code used the + operator to join the initial value and the integration resuslts. This led to incorrect array shapes and numpy treating the data inside as dtype=object. Thus scipy interp1d did not work directly with the output of ddeint.

Tested with: 1D DDE (provided examples and own models)

Not tested with: Systems of DDEs

Zulko commented 2 months ago

Many apologies for not merging this at the time, thank you very much and it is now fixed.