TEM Scripting adapter for FEI/TFS microscopes
Project description
Introduction
Pytemscript is a Python package designed around standard and advanced scripting interfaces of Thermo Fisher Scientific and FEI transmission electron microscopes. The functionality is limited to the functionality of the original COM scripting interfaces. For detailed information about TEM scripting see the documentation accompanying your microscope.
The pytemscript package provides a client API to connect both locally and remotely to the microscope PC. Currently, the minimum supported Python version is 3.4, so you should be able to control TEM instruments operating Windows XP or newer OS. This allows us to support scripting on a wide range of TEM platforms including Tecnai, Talos and Titan.
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 source code is available at https://github.com/azazellochg/pytemscript
The documentation can be found at https://pytemscript.readthedocs.io
Quick example
Execute this on the microscope PC to create an instance of the local Microscope class:
from pytemscript.microscope import Microscope
microscope = Microscope()
Show the current acceleration voltage:
microscope.gun.voltage
300.0
Move beam:
shift = microscope.optics.illumination.beam_shift
shift += (0.4, 0.2)
shift *= 2
microscope.optics.illumination.beam_shift = shift
Take an image:
image = microscope.acquisition.acquire_tem_image("BM-Ceta",
size=AcqImageSize.FULL, # <-- see enumerations
exp_time=0.5,
binning=2)
image.save("img.mrc")
Disclaimer
Copyright (c) 2012-2021 by Tore Niermann Contact: tore.niermann (at) tu-berlin.de
Copyright (c) 2022-2025 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytemscript-3.0.tar.gz
.
File metadata
- Download URL: pytemscript-3.0.tar.gz
- Upload date:
- Size: 75.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b4ad0237549e5c87805f5cbf3e0e6d9b47ec5be114d48963605205d9d9c4c773
|
|
MD5 |
9f94461741a9100da4fd5490ca375470
|
|
BLAKE2b-256 |
18a76875d3e847de294bae7b4d270334857712ac872c34e27b2eaf338a617399
|
Provenance
The following attestation bundles were made for pytemscript-3.0.tar.gz
:
Publisher:
publish_and_tag.yml
on azazellochg/pytemscript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pytemscript-3.0.tar.gz
-
Subject digest:
b4ad0237549e5c87805f5cbf3e0e6d9b47ec5be114d48963605205d9d9c4c773
- Sigstore transparency entry: 191926451
- Sigstore integration time:
-
Permalink:
azazellochg/pytemscript@81c73621464625e30f48a926f8a80640519287b2
-
Branch / Tag:
refs/heads/master
- Owner: https://github.com/azazellochg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish_and_tag.yml@81c73621464625e30f48a926f8a80640519287b2
-
Trigger Event:
push
-
Statement type:
File details
Details for the file pytemscript-3.0-py3-none-any.whl
.
File metadata
- Download URL: pytemscript-3.0-py3-none-any.whl
- Upload date:
- Size: 80.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a64dfb6f5ed8ae3c95ffb3408d06d9fbd8e89eeb3703c28e82c1ed2c8189f6e3
|
|
MD5 |
2ccccd3dfc13847a1ce513c6998509ad
|
|
BLAKE2b-256 |
901cea4529a088e1887de0b6c3c4c3cbf4592ec7d435dcb29f1ef25587d3a15f
|
Provenance
The following attestation bundles were made for pytemscript-3.0-py3-none-any.whl
:
Publisher:
publish_and_tag.yml
on azazellochg/pytemscript
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pytemscript-3.0-py3-none-any.whl
-
Subject digest:
a64dfb6f5ed8ae3c95ffb3408d06d9fbd8e89eeb3703c28e82c1ed2c8189f6e3
- Sigstore transparency entry: 191926455
- Sigstore integration time:
-
Permalink:
azazellochg/pytemscript@81c73621464625e30f48a926f8a80640519287b2
-
Branch / Tag:
refs/heads/master
- Owner: https://github.com/azazellochg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish_and_tag.yml@81c73621464625e30f48a926f8a80640519287b2
-
Trigger Event:
push
-
Statement type: