A collection of Python scripts/apps/utilities designed for automating and enhancing workflows with Rigaku Synergy-ED instruments and JEOL TEMs. This repository contains various standalone utilities designed to simplify common tasks in electron microscopy.
- Python 3.8 (higher not tested)
comtypes(Windows only — communicates with the JEOL TEM3 COM server)- Additional requirements per script (see individual .py files); global requirements.txt contains all packages
Note: PyJEM is no longer required. All scripts communicate directly with the JEOL COM interface via
comtypes.
- Clone this repository:
git clone https://github.com/danielnrainer/TEM-scripts.git
cd TEM-scripts- Install common dependencies:
pip install -r requirements.txtbeam_blank.py- Control beam blanking on JEOL microscopes via the JEOL TEM3 COM interfacebeam_blank_comtypes.py- Alternative beam blank controller using direct comtypes COM access (no PyJEM dependency)HT_ramping.py- High-tension ramping utility; ramps the accelerating voltage between setpoints at a controlled rate via the JEOL TEM3 COM interfacestage_logger.py- Logging script (CLI only) for stage positions of JEOL TEMs and Synergy-ED diffractometers
Each script is standalone and can be run independently. Navigate to the script's directory and run it using Python:
python script_name.py