Array programming provides a powerful, compact and expressive syntax for accessing, manipulating and operating on data in vectors, matrices and higher-dimensional arrays. NumPy is the primary array programming library for the Python language. It has an essential role in research analysis pipelines in fields as diverse as physics, chemistry, astronomy, geoscience, biology, psychology, materials science, engineering, finance and economics. For example, in astronomy, NumPy was an important part of the software stack used in the discovery of gravitational waves1 and in the first imaging of a black hole2. Here we review how a few fundamental array concepts lead to a simple and powerful programming paradigm for organizing, exploring and analysing scientific data. NumPy is the foundation upon which the scientific Python ecosystem is constructed. It is so pervasive that several projects, targeting audiences with specialized needs, have developed their own NumPy-like interfaces and array objects. Owing to its central position in the ecosystem, NumPy increasingly acts as an interoperability layer between such array computation libraries and, together with its application programming interface (API), provides a flexible framework to support the next decade of scientific and industrial analysis.
We propose a solution to a long-standing problem: how to terminate multiple vortices in the heart, when the locations of their cores and their critical time windows are unknown. We scan the phases of all pinned vortices in parallel with electric field pulses (E-pulses). We specify a condition on pacing parameters that guarantees termination of one vortex. For more than one vortex with significantly different frequencies, the success of scanning depends on chance, and all vortices are terminated with a success rate of less than one. We found that a similar mechanism terminates also a free (not pinned) vortex. A series of about 500 experiments with termination of ventricular fibrillation by E-pulses in pig isolated hearts is evidence that pinned vortices, hidden from direct observation, are significant in fibrillation. These results form a physical basis needed for the creation of new effective low energy defibrillation methods based on the termination of vortices underlying fibrillation.
Spiral waves in cardiac tissue can pin to tissue heterogeneities and form stable pinned waves. These waves can be unpinned by electric stimuli applied close to the pinning center during the vulnerable window of the spiral. Using a phase transition curve (PTC), we quantify the response of a pinned wave in a cardiac monolayer to secondary excitations generated electric field pulses. The PTC can be used to construct a one-dimensional map that faithfully predicts the pinned wave's response to periodic field stimuli. Based on this 1D map, we predict that pacing at a frequency greater than the spiral frequency, over drive pacing, leads to phase locking of the spiral to the stimulus, which hinders unpinning. In contrast, under drive pacing can lead to scanning of the phase window of the spiral, which facilitates unpinning. The predicted mechanisms of phase scanning and phase locking are experimentally tested and confirmed in the same monolayers that were used to obtain the PTC. Our results have the potential to help choose optimal parameters for low energy antifibrillation pacing schemes.
A basic state and parameter estimation scheme for an extended excitable system is presented, where time series from a spatial grid of sampling points are used to drive and synchronize corresponding model equations. Model parameters are estimated by minimizing the synchronization error. This estimation scheme is demonstrated using data from generic models of excitable media exhibiting spiral wave dynamics and chaotic spiral break-up that are implemented on a graphics processing unit.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.