From 40f53655e0498c4bae104e310f63cb5b1a6e3f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Tcho=C5=84?= Date: Sat, 30 May 2026 17:27:29 +0200 Subject: [PATCH 1/3] You cannot `get_data_from_shared_memory` if data is an error report --- src/instamatic/camera/camera_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instamatic/camera/camera_client.py b/src/instamatic/camera/camera_client.py index 08536fbb..2825f05a 100644 --- a/src/instamatic/camera/camera_client.py +++ b/src/instamatic/camera/camera_client.py @@ -139,7 +139,7 @@ def _eval_dct(self, dct): else: raise RuntimeError(f'Received empty response when evaluating {dct=}') - if self.use_shared_memory and acquiring_image and data: + if status == 200 and self.use_shared_memory and acquiring_image and data: data = self.get_data_from_shared_memory(**data) if status == 200: From c69fefc58703008fabd6f586a5384633db217606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Tcho=C5=84?= Date: Fri, 12 Jun 2026 14:43:36 +0200 Subject: [PATCH 2/3] Add infor about OS, installation, PyCifRW --- readme.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 95b8e628..614d8dce 100644 --- a/readme.md +++ b/readme.md @@ -34,11 +34,12 @@ See [instamatic-dev/instamatic-tecnai-server](https://github.com/instamatic-dev/ ## Installation -If you use conda, create a new environment: +If you use conda, create a new environment with a supported version of python. For maximum convenience, install basic libraries as well as `pycifrw` from conda forge: ``` -conda create -n instamatic python=3.11 +conda create -n instamatic python=3.12 conda activate instamatic +conda install numpy matplotlib pycifrw -c conda-forge ``` Install using pip, works with python versions 3.9 or newer: @@ -47,9 +48,11 @@ Install using pip, works with python versions 3.9 or newer: pip install instamatic ``` +Please mind that one of the indirect Instamatic dependencies, PyCifRW, requires Microsoft Visual C++ 14.0 or greater to compile properly. For this reason, when installing instamatic directly from pip, these build tools must be available on the system to succeed. Installing precompiled `pycifrw` from conda-forge circumvents this issue. + ## OS requirement -The package requires Windows 7 or higher. It has been mainly developed and tested under Windows 7 and higher. +The package requires Windows 7 or higher. It has been mainly developed and tested under Windows 7 and higher. Client and camera server installation were shown to successfully run on Unix-based systems but may require additional care. Microscope server installations require Windows OS for communication with the TEM. ## Package dependencies From c553f569b4ca24d0cc77d1a52111d01945ee0680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Tcho=C5=84?= Date: Fri, 12 Jun 2026 14:45:10 +0200 Subject: [PATCH 3/3] Fix a long-standing typo in autoconfig --- src/instamatic/config/autoconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instamatic/config/autoconfig.py b/src/instamatic/config/autoconfig.py index 96ef2fe2..d9da9165 100644 --- a/src/instamatic/config/autoconfig.py +++ b/src/instamatic/config/autoconfig.py @@ -206,7 +206,7 @@ def main(): print(f' 1. Check and update the pixelsizes in `{calib_config_fn}`') print(' - In real space, pixelsize in nm') print(' - In reciprocal space, pixelsize in px/Angstrom') - print(f' 2. Check and update magnification ranges in `{microscope_config_fn}`') + print(f' 2. Check and update magnification ranges in `{tem_config_fn}`') if __name__ == '__main__':