Hi Jakub,
I am attempting exactly the same thing at the moment and also get stuck at the C-conversion. Do you also get the following AssertionError?
~/openCARP/physics/limpet/src/python/limpet_fe.py fenton_karma_1998_BR.model ~/openCARP/physics/limpet/models/imp_list.txt ~/openCARP/physics/limpet/src/imps_src/
WARNING: Model fenton_karma_1998_BR: MLIR code generation does not support CVODE integration method. Using original codegen...
Traceback (most recent call last):
File "~/openCARP/physics/limpet/src/python/limpet_fe.py", line 2953, in <module>
obj.printSource(out_dir)
File "~/openCARP/physics/limpet/src/python/limpet_fe.py", line 1393, in printSource
self.changeExternalUnits(1, out, complete_format)
File "~/openCARP/physics/limpet/src/python/limpet_fe.py", line 353, in changeExternalUnits
factor*log_diff(desired_unit,current_unit)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/openCARP/physics/limpet/src/python/unit.py", line 111, in log_diff
assert a.is_like(b)
AssertionError
It seems like the problematic part of the .model file is
u; .external(Vm); .nodal()
and more specifically the fact that u and Vm have different units, despite the conversion
Vm = (V_0+(u*(V_fi - V_0))); .units(mV)
later in the .model file.
I'll have a look at it and let you know if I find something helpful.
Kind regards,
Marie