Jython interpreter (based on Python 2.7 ) has been part of TopSpin as a standard component for scripting and application development for 20 years. The Jython scripts are executed in the same Java virtual machine that runs the TopSpin user interface. This offers numerous possibilities, but also comes with some limitations.
Why not combine the capabilities of TopSpin, as the standard software for processing of NMR spectra, with Python 3 scripts and harness the power of all available packages?
The new Python application programming interface of TopSpin allows users to access TopSpin from any Python 3.9+ environment and is an alternative to, but does not replace, the well-established TopSpin Jython interpreter.
Get the latest Python Interface package for free. Just register / log in to download it.
The following functions are available
Data access is currently limited to one- and two-dimensional spectra. You can either read entire data vectors, or selected parts such as individual rows in a "ser" file, or columns from a 2D spectrum.
During the development of the Python programming interfaces, special emphasis was placed on user-friendliness. Whenever possible, a familiar syntax is used. For example, handling parameters or sending commands to TopSpin use the same syntax as typing in TopSpin command line. The interfaces used for data access are identical for Python and Jython. This allows the code to be shared for different use cases.
Topspin 4.1.3 for Windows and Linux includes Python 3.9 environment, Bruker Python packages are pre-installed. Documentation and sample scripts are also available.
The required license is a part of the free TopSpin processing license for academia.
For industrial customers, a free evaluation license is available on demand.