Package: pytemscript
AboutThepytemscriptpackage provides a Python wrapper for both standard and advanced scripting
interfaces of Thermo Fisher Scientific and FEI microscopes. The functionality is
limited to the functionality of the original scripting interfaces. For detailed information
about TEM scripting see the documentation accompanying your microscope.Thepytemscriptpackage provides two interfaces to the microscope. The first one
corresponds directly to the COM interface. The other interface is a more high level interface.
Within thepytemscriptpackage three implementation for the high level interface are provided,
one for running scripts directly on the microscope PC, one to run scripts remotely over network, and
finally a dummy implementation for offline development & testing exists.Currently thepytemscriptpackage requires Python 3.4 or higher. The current plan is to keep the minimum
supported Python version at 3.4, since this is the latest Python version supporting Windows XP.This is a GPL fork of the original BSD-licensed project:https://github.com/niermann/temscriptNew changes and this whole product is distributed under either version 3 of the GPL License, or
(at your option) any later version.DocumentationThe documentation can be found athttps://pytemscript.readthedocs.io/(tbd)InstallationRequirements:python >= 3.4numpysphinx-rtd-theme (only for building documentation)matplotlib (only for running tests)Installation from PyPI on Windows (using pip)This assumes you have connection to the internet.Execute from the command line (assuming you have your Python interpreter in the path):py -m pip install --upgrade pip
py -m pip install pytemscriptOffline-Installation from wheels file on Windows (using pip)This assumes you have downloaded the wheels file .whl for temscript, numpy and comtypes into the current folder.Execute from the command line (assuming you have your Python interpreter in the path:py -m pip install numpy comtypes pytemscript --no-index --find-links .If you want to install pytemscript from sources (you still need to download numpy and comtypes *.whl):py -m pip install numpy comtypes --no-index --find-links .
py -m pip install -e <source_directory>Supported functions of the COM interfaceRelative to Titan V1.9 standard scripting adapter:Acquisition: completeApertureMechanismCollection: complete, untested (requires a separate license)AutoLoader: completeBlankerShutter: completeCamera: completeConfiguration: completeGun: completeGun1: incomplete, untested (requires TEM Server 7.10)Illumination: completeInstrumentModeControl: completeProjection: completeStage: completeTemperatureControl: completeUserButton(s): complete, no events handlingVacuum: completeRelative to Titan V1.2 advanced scripting adapter:Acquisitions: completePhaseplate: completePiezoStage: complete (untested)Source: complete (untested)UserDoorHatch: complete (untested)DisclaimerCopyright (c) 2012-2021 by Tore Niermann
Contact: tore.niermann (at) tu-berlin.deCopyleft 2022 by Grigory Sharov
Contact: gsharov (at) mrc-lmb.cam.ac.ukAll product and company names are trademarks or registered trademarks
of their respective holders. Use of them does not imply any affiliation
with or endorsement by them.This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.