Skip to main content

About

The temscript package provides a Python wrapper for the scripting interface of Thermo Fisher Scientific and FEI microscopes. The functionality is limited to the functionality of the original scripting interface. For detailed information about TEM scripting see the documentation accompanying your microscope.

The temscript package provides two interfaces to the microsope. The first one corresponds directly to the COM interface. The other interface is a more high level interface. Within the temscript 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 temscript 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.

The sources can be found on GitHub: https://github.com/niermann/temscript

Documentation

The documentation of the latest version can be found at:

https://temscript.readthedocs.io/

Installation

Requirements:

  • Python >= 3.4 (tested with 3.4)
  • Numpy (tested with 1.9)
  • Sphinx (only for building documentation, tested with 1.6)

On all platforms the dummy and remote high level interfaces are provided. On Windows platforms the package provides the Python wrapper to the scripting COM interface. However, trying to instantiate this wrapper will fail, if the scripting COM classes are not installed locally.

Installation from PyPI (using pip)

This assumes you have connection to the internet.

Execute from the command line (assuming you have your python interpreter in the path, this might require superuser or administrator privileges):

python3 -m pip install --upgrade pip
python3 -m pip install temscript

Offline-Installation from wheels file (using pip)

This assumes you have downloaded the wheels file .whl

Execute from the command line (assuming you have your python interpreter in the path, this might require superuser or administrator privileges):

python3 -m pip install --upgrade pip
python3 -m pip install <downloaded-wheels-file>.whl

Installation from sources (using pip)

This assumes you have downloaded and extracted the sources into the directory <source_directory> (alternative have cloned the sources from GitHub into <source_directory>).

Execute from the command line (assuming you have your python interpreter in the path, this might require superuser or administrator privileges):

python3 -m pip install --upgrade pip
python3 -m pip install <source_directory>

Installation from sources (using distutils)

This assumes you have downloaded and extracted the sources into the directory <source_directory> (alternative have cloned the sources from GitHub into <source_directory>).

Execute from the command line (assuming you have your python interpreter in the path, this might require superuser or administrator privileges):

cd <source_directory>
python3 setup.py install

Supported functions of the COM interface

Relative to Titan V1.1 scripting adapter:

  • Projection: complete
  • Stage: complete
  • Configuration: complete
  • Acquisition: complete
  • AcqImage: complete
  • CCDCamera: complete
  • CCDCameraInfo: complete
  • CCDAcqParams: complete
  • STEMDetector: complete (but untested)
  • STEMAcqParams: complete (but untested)
  • STEMDetectorInfo: complete (but untested)
  • Camera: complete
  • Gauge: complete
  • Vacuum: complete
  • UserButton: missing
  • AutoLoader: missing
  • TemperatureControl: missing
  • Illumination: complete

Copyright & Disclaimer

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

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.

temscript 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 LICENCE.txt file for any details.

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.

Metadata

Release files for temscript 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for temscript 2.2.0
File Size Uploaded Provenance Actions
temscript-2.2.0.tar.gz 54.7 kB Without provenance Details for temscript-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for temscript 2.2.0
File Interpreter ABI Platform Actions
temscript-2.2.0-py3-none-any.whl Python 3 none any Details for temscript-2.2.0-py3-none-any.whl

Total release size: 91.0 kB

Release files / temscript-2.2.0.tar.gz

Download URL temscript-2.2.0.tar.gz
Size 54.7 kB
Tags Source
SHA-256 checksum
How to use checksums
579b7eea73ca95f795b5dc0a2ae63e0ffc7383ac1c27f6d69896889569e9a36d
BLAKE2b-256 checksum
How to use checksums
7d64ce7c2d865c8781b986eacfcabfbfed7d32f623bcfde22e9902e8b54d7af1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / temscript-2.2.0-py3-none-any.whl

Download URL temscript-2.2.0-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d49817addaa6bfd1324337d729be90040999a9a515e3d4d50de83223910681ea
BLAKE2b-256 checksum
How to use checksums
a1ecede8db63f20047919a373cfef34743c8f6836329d1db9d2155ae9e8a7444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for temscript 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page