Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement CellML translation #86

Open
harveymannering opened this issue Jun 2, 2023 · 1 comment
Open

Re-implement CellML translation #86

harveymannering opened this issue Jun 2, 2023 · 1 comment

Comments

@harveymannering
Copy link

harveymannering commented Jun 2, 2023

I am having trouble using the CellML related functions in antimony in Python, specifically getCellMLString() doesn't seem to exist (see picture). I am used version 2.13.4 which I pip installed.

image

Looks like this is having downstream effects on Tellurium too. If I run the example given here in a notebook, I get the following error:

AttributeError                            Traceback (most recent call last)
Cell In[1], line 22
     19 print('...')
     21 # convert to CellML
---> 22 cellml_model = te.antimonyToCellML(ant_model)
     23 print('cellml_model (from Antimony)')
     24 print('*'*80)

File [...\Python\Python311\Lib\site-packages\tellurium\tellurium.py:627, in antimonyToCellML(ant)
    625 _checkAntimonyReturnCode(code)
    626 mid = antimony.getMainModuleName()
--> 627 return antimony.getCellMLString(mid)

AttributeError: module 'antimony' has no attribute 'getCellMLString'
@luciansmith
Copy link
Contributor

Yes, all CellML-related functions have been disabled. They used the CellML API, and it eventually got too difficult to maintain, so the functionality was dropped. It is hoped that we'll be able to use libCellML soon, which is inching its way Zeno's-Paradox-style towards a 1.0 release, and might actually have enough functionality as it stands to replace the old code, but we haven't had the time to actually implement the change-over yet.

@luciansmith luciansmith changed the title CellML functions are missing in Python Re-implement CellML translation Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants