Skip to main content

TEM Scripting adapter for FEI/TFS microscopes

Project description

About

The pytemscript package 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.

The pytemscript package 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 the pytemscript package 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 the pytemscript package 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/temscript New changes and this whole product is distributed under either version 3 of the GPL License, or (at your option) any later version.

Documentation

The documentation can be found at https://pytemscript.readthedocs.io/ (tbd)

Installation

Requirements:

  • python >= 3.4
  • numpy
  • sphinx-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 pytemscript

Offline-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 interface

Relative to Titan V1.9 standard scripting adapter:

  • Acquisition: complete
  • ApertureMechanismCollection: complete, untested (requires a separate license)
  • AutoLoader: complete
  • BlankerShutter: complete
  • Camera: complete
  • Configuration: complete
  • Gun: complete
  • Gun1: incomplete, untested (requires TEM Server 7.10)
  • Illumination: complete
  • InstrumentModeControl: complete
  • Projection: complete
  • Stage: complete
  • TemperatureControl: complete
  • UserButton(s): complete, no events handling
  • Vacuum: complete

Relative to Titan V1.2 advanced scripting adapter:

  • Acquisitions: complete
  • Phaseplate: complete
  • PiezoStage: complete (untested)
  • Source: complete (untested)
  • UserDoorHatch: complete (untested)

Disclaimer

Copyright (c) 2012-2021 by Tore Niermann Contact: tore.niermann (at) tu-berlin.de

Copyleft 2022 by Grigory Sharov Contact: gsharov (at) mrc-lmb.cam.ac.uk

All 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytemscript-3.0a1.tar.gz (38.9 kB view details)

Uploaded Source

File details

Details for the file pytemscript-3.0a1.tar.gz.

File metadata

  • Download URL: pytemscript-3.0a1.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for pytemscript-3.0a1.tar.gz
Algorithm Hash digest
SHA256 f5daa6f3949721d6d721ae0d531d2ae36bfa42f79c8fe6f75c02631837bbae70
MD5 accd1112d0f4b0c1a24fe4457a66ca60
BLAKE2b-256 fbef558cb99d542b0cb58760bbb51b6280436275c0dc4cf8eb9d3c15c60330f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page