Myokit

Latest version: v1.36.1

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

Scan your dependencies

Page 4 of 35

1.32.0

- Added
- [672](https://github.com/myokit/myokit/pull/672) Added more detailed error output to several CVODE errors related to RHS-related numerical issues.
- [672](https://github.com/myokit/myokit/pull/672) Now tested on Sundials 5 (locally).
- [672](https://github.com/myokit/myokit/pull/672) Now testing on Python 3.9 (Linux).
- [672](https://github.com/myokit/myokit/pull/672) `Simulation.run` documentation is now more clear on what happens for very short simulation durations (or zero).
- [674](https://github.com/myokit/myokit/pull/674) Added a method `Model.has_parse_info` that checks if the model contains information from parsing (i.e. line numbers).
- [674](https://github.com/myokit/myokit/pull/674) Added a parameter `raw` to `Model.show_line_of` that returns the line number as an integer
- [674](https://github.com/myokit/myokit/pull/674) Added a method to the IDE that lets you jump to the definition of a selected variable.
- [680](https://github.com/myokit/myokit/pull/680) Now testing on Python 3.9 and Miniconda 3.8 (Windows).
- Removed
- [681](https://github.com/myokit/myokit/pull/681) Removed the deprecated library `myokit.lib.fit`. For fitting see e.g. [PINTS](https://github.com/pints-team/pints) and this [tutorial on fitting ion channel data with Myokit & PINTS](https://github.com/CardiacModelling/fitting-notebooks).
- Fixed
- [672](https://github.com/myokit/myokit/pull/672) Fixed bug in `Variable.convert_unit()` that caused unexpected (and quite arbitrary) results.
- [672](https://github.com/myokit/myokit/pull/672) Fixed bug where calling `Simulation.run()` with a very short runtime caused a zero state to be returned.
- [676](https://github.com/myokit/myokit/pull/676) Fixed a bug in CellML (1 and 2) export when inferring units for a state variable.
- [679](https://github.com/myokit/myokit/pull/679) Fixed "DLL load failed while importing myokit" issue on Windows 10 with Python 3.8 (via miniconda).

1.31.1

- Added
- [623](https://github.com/myokit/myokit/pull/623) The changes made with each release are now stored in CHANGELOG.md.
- [622](https://github.com/myokit/myokit/pull/622) `SimulationOpenCL` now includes a method `is_paced` and `neighbours` that provide information about the simulated cells.
- [622](https://github.com/myokit/myokit/pull/622) `SimulationOpenCL.find_nan` now has an option to return a `DataLog` with the final logged variables before the error occurred.
- [632](https://github.com/myokit/myokit/pull/632) Added methods `DataBlock1d.to_log` and `DataBlock2d.to_log`.
- [633](https://github.com/myokit/myokit/pull/633) DataBlockViewer now shows mouse coordinates in status bar for video and graph view.
- [652](https://github.com/myokit/myokit/pull/652) Added methods to remove 1d and 2d traces from `DataBlock1d` and `DataBlock2d`.
- Changed
- [610](https://github.com/myokit/myokit/pull/610) If numerical errors occur when evaluating an expression, the IDE now shows these in the console instead of in a pop-up.
- [622](https://github.com/myokit/myokit/pull/622) `myokit.strfloat` now takes a `precision` argument.
- [622](https://github.com/myokit/myokit/pull/622) `Model.format_state` and `Model.format_state_derivatives` now take a `precision` argument.
- [622](https://github.com/myokit/myokit/pull/622) If errors occur, the `SimulationOpenCL` now displays improved (and hopefully more informative) output.
- [623](https://github.com/myokit/myokit/pull/623) Updated licensing info.
- [653](https://github.com/myokit/myokit/pull/653) `Model.pyfunc()` now validates the model before running (and fails if the model does not validate).
- [661](https://github.com/myokit/myokit/pull/661) When importing MathML, the inverse hyperbolic trig functions are now rendered using slightly simpler equations.
- [664](https://github.com/myokit/myokit/pull/664) EasyML export now adds meta data, a group of CVODE-solved variables, a group of variables to trace, and a group of parameters (based on code contributed by Ed Vigmond).
- [664](https://github.com/myokit/myokit/pull/664) EasyML export now converts voltage, current, and time variables to the preferred units.
- [664](https://github.com/myokit/myokit/pull/664) EasyML export now has consistently ordered output when re-run.
- [664](https://github.com/myokit/myokit/pull/664) EasyML expression writer now uses `expm1` where possible.
- Deprecated
- [622](https://github.com/myokit/myokit/pull/622) `SimulationOpenCL.is2d()` was deprecated in favor of `SimulationOpenCL.is_2d()`.
- [632](https://github.com/myokit/myokit/pull/632) `DataBlock1d.from_DataLog` and `DataBlock2d.from_DataLog` have both been deprecated, in favor of new `from_log` methods.
- Fixed
- [650](https://github.com/myokit/myokit/pull/650) Fix to `myokit.lib.plots.cumulative_current` for normalisation in areas with zero current.
- [603](https://github.com/myokit/myokit/pull/603) Improved handling of types (ints resulting from logical operators) in `OpenCLSimulation`.
- [613](https://github.com/myokit/myokit/pull/613) `Model.map_component_io` now respects the `omit_constants` argument for Rush-Larsen variables.
- [622](https://github.com/myokit/myokit/pull/622) If `Model.format_state_derivatives` needs to evaluate the derivatives, it will now use the given `state` instead of the model state.
- [628](https://github.com/myokit/myokit/pull/628) The DataBlockViewer now shows a working colour bar for 1d simulations.
- [638](https://github.com/myokit/myokit/pull/638) The DataBlockViewer now handles blocks with `t[0] > 0` correctly.
- [655](https://github.com/myokit/myokit/pull/655) Fixed bug where wrong initial state was shown by `myokit.step()`.
- [663](https://github.com/myokit/myokit/pull/663) Fixed deprecation warning in `save_state_bin()`.

1.31.0

- Added
- [548](https://github.com/myokit/myokit/pull/548) Models, protocols, and CVODE simulations can now be pickled, and tests have been added that check that simulations can be run in parallel (even on Windows).
- [548](https://github.com/myokit/myokit/pull/548) Model and protocol now support comparison with `==`.
- [553](https://github.com/myokit/myokit/pull/553) The cumulative-current plot now has a maximum-number-of-currents option (all further currents will be bundled into one).
- [567](https://github.com/myokit/myokit/pull/567) Added support for Simulation building on Python 3.8 on Windows.
- [574](https://github.com/myokit/myokit/pull/574), [#599](https://github.com/myokit/myokit/pull/599), [#547](https://github.com/myokit/myokit/pull/547), [#528](https://github.com/myokit/myokit/pull/528) DavAug A completely rewritten SBML API and parser that's capable of handling models that define species and reactions.
- Changed
- [536](https://github.com/myokit/myokit/issues/536) `Ohm` is now a quantifiable unit in the `mmt` syntax, i.e. `1 [MOhm]`. This replaces the non-standard `R` unit which has been removed.
- [556](https://github.com/myokit/myokit/pull/556) CellML imports now import models that contain unsupported units (but with warnings).
- [557](https://github.com/myokit/myokit/pull/557) Imports and exports now raise warnings instead of using the Myokit textlogger for this.
- [559](https://github.com/myokit/myokit/pull/559), [#541](https://github.com/myokit/myokit/pull/541) Unit tests are now included in the PyPI package.
- [560](https://github.com/myokit/myokit/pull/560) Sympy is no longer a required dependency (but still an optional one).
- [565](https://github.com/myokit/myokit/pull/565) Some slight changes to simulation building: Now uses `--inplace` instead of `--old-and-unmanageable` and should delete any temporary files created in the process.
- [566](https://github.com/myokit/myokit/pull/566) Simulations now include a time and process number dependent hash in their generated-module names.
- [569](https://github.com/myokit/myokit/pull/569) The CellML export now ensures there are no spaces in initial value or unit multiplier attributes.
- [576](https://github.com/myokit/myokit/pull/576) Non-integer exponents are now allowed in the unit system, which compares units with a `close()` method that expects a certain numerical tolerance, instead of using exact comparison.
- [576](https://github.com/myokit/myokit/pull/576) CellML imports now import models with non-integer unit exponents.
- [597](https://github.com/myokit/myokit/pull/597) The output of the `step()` method has been improved, and the method now only warns about relative differences bigger than 1 epsilon.
- [commit](https://github.com/myokit/myokit/commit/fc08debb03bd0f2e2d93a52fc0dc9e907448d057) The method `show_evalution_of` now has consistently ordered output.
- CellML imports treat new base units as dimensionless.
- The IDE now checks the protocol even if the model is invalid or unchanged.
- Removed
- [563](https://github.com/myokit/myokit/pull/563), [#564](https://github.com/myokit/myokit/pull/564) The `myokit.mxml` module has been removed.
- Fixed
- [539](https://github.com/myokit/myokit/pull/539) Bugfix for simulations that ended at a time numerically indistinguishable from an event time.
- [570](https://github.com/myokit/myokit/pull/570) Bugfixes and fewer warnings for various matplotlib versions.
- [572](https://github.com/myokit/myokit/pull/572) Bugfix to `lib.common.StrenghtDuration`.
- [585](https://github.com/myokit/myokit/pull/585) A recently introduced bug in the `HHSimulation`'s `steady_state()` method was fixed.

1.30.6

- Fixed
- [531](https://github.com/myokit/myokit/pull/531) Fixed bug where GUI CellML export didn't export stimulus current.

1.30.5

- Added
- [525](https://github.com/myokit/myokit/pull/525) Added support for CellML 2.0.
- Changed
- [516](https://github.com/myokit/myokit/pull/516) Rewrote SBML import to use etree instead of DOM.
- Removed
- [522](https://github.com/myokit/myokit/pull/522) Removed `myokit.formats.mathml.parse_mathml_dom` function.
- [522](https://github.com/myokit/myokit/pull/522) Removed mxml `myokit.mxml.dom_child` and `myokit.mxml.dom_next` methods.
- Fixed
- [515](https://github.com/myokit/myokit/pull/515) Now setting OpenCL framework as linker flag on MacOS.

1.30.4

- Added
- [503](https://github.com/myokit/myokit/pull/503) Added `clone()` and `__repr__()` methods to myokit.Equation.
- [507](https://github.com/myokit/myokit/pull/507) Fixed a bug with running simulations in Spyder on Windows.
- Fixed
- [496](https://github.com/myokit/myokit/pull/496) Some fixes and tweaks to CellML 1.0/1.1 API.

Page 4 of 35

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.