Chaste-codegen

Latest version: v0.10.5

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.5.4

- Fixed sympy deprecation warning when using sympy 1.7 and bumped cellmlmanip recuirement up to ensure sympy 1.7 compatibility
- Improved support for secondary trigonometric functions such as sec and acoth.
- When used with Cellmlmanip version 0.2.2+ an improved printing of devisions is used. For example `1 / (1/cos(x))` now gets rendered as `cos(x)` whereas previously it would be `1 / 1 / cos(x)` giving the incorrect result. An side effcet of the change is that powers of formulas get extra brackets e.g. `pow((1 / x), 2)`.
- chaste_codegen uses placeholder functions for some common maths functions like exp, in order to delay evaluation till the point where the code is written. For programmers using chaste_codegen as a library, there now is a function called `subs_math_func_placeholders` which can be used on any sympy expression to substitute these placeholders.
E.g.

>> expr
2.0 * exp_(V)
>> subs_math_func_placeholders(expr)
2.0 * exp(V)

0.5.3

- Added an additional error messages if cellml files can't be loaded and a warning if a lookup table is specified for a tag not present in the model.

0.5.2

- Error messages have been improved, especially for errors caused by invalid or missing metadata.

0.5.1

- Corrected usage mentioned in the readme

0.5.0

- Now implements lookup tables.
- Multiplication equations x * y * y now have 1.0 terms removed in a way that works more generically.

0.4.1

- Now outputs sqrt(x) instead of pow(x, 0.5).

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.