Problems with last version?

24 views
Skip to first unread message

rodrigo mora

unread,
Feb 23, 2023, 5:19:35 PM2/23/23
to copasi-u...@googlegroups.com
Dear all,

We are trying to update an application that we wrote using COPASI Binding 4.27, to the current version available in COPASI web site (version 4.39), but in this new version some constants are missing from CUnit. Even the Example1.cs included in the download package doesn't compile because CUnit.s, CUnit.microl and CUnit.Mmol are not found. Is this an error in this version or the constants were moved to another namespace?

Best regards,

Rodrigo Mora.

Frank Bergmann

unread,
Feb 24, 2023, 1:10:07 AM2/24/23
to COPASI User Forum
Indeed, to make the unit system more flexible, the Unit enumeration is no longer available, instead units are parsed from strings. Maybe you can have a look at the example to see how the units are set currently: 

basically it is: 

model.setTimeUnit("s");
model.setVolumeUnit("ul");
model.setQuantityUnit("nmol");

instead of

model.setTimeUnit(CUnit.s);
model.setVolumeUnit(CUnit.microl);
model.setQuantityUnit(CUnit.nMol);

full examples are here: 


Sorry for the inconvenience, let us know if you need more help. 
best

Frank

rodrigo mora

unread,
Feb 24, 2023, 8:27:25 AM2/24/23
to copasi-u...@googlegroups.com
Thanks a lot Frank.

Best regards,

Rodrigo.

--
You received this message because you are subscribed to the Google Groups "COPASI User Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copasi-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copasi-user-forum/66e00417-1cd5-4eb7-8549-415b3800beean%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages