copasi_model_obj_common_name needs to be a string
eagmon opened this issue · 4 comments
eagmon commented
this line in core.py can return an invalid model name and leads to an error:
TypeError: Wrong number or type of arguments for overloaded function 'new_CRegisteredCommonName'.
I found this can be fixed by simply converting it to a string. Would be happy to open a PR if I'm given access.
jonrkarr commented
I'm not sure how this could fail. It sounds like the importing of the model (L327) might have failed and the error wasn't caught. What happens if you import the model that you're trying into the COPASI UI?
fbergmann commented
The correct fix would be to call copasi_model.getValueReference().getCN().getString()
sorry for the inconvenience.
eagmon commented
Thank you @fbergmann @jonrkarr!
jonrkarr commented
This will be released as 0.1.35
in a few minutes.