Dolfin adjoint custom function - import error

Hi,

I am trying to replicate the custom function example shown here: Adding custom functions. However I can’t seem to import the overload_function module (No module named 'pyadjoint.overloaded_function').

I have also followed the example here, and I am still getting an import error (this time cannot import name 'create_overloaded_object'.

Does anyone know what the current implementation is to create custom overloaded functions?
I am using Fenics 2018.1.0 and dolfin_adjoint 2018.1.0

Many thanks in advance,
D

Hi Dee,

this problem is solved in the recent released pyadjoint 2019.1.0.
You can try that out.

Cheers,
Yang

Hi Yang,

Thank you for your response - yes the new version seems to have solved the issue.

Cheers,
D