Project

General

Profile

Strange dimension cameras » History » Version 3

Anchi Cheng, 10/31/2013 09:35 PM

1 1 Anchi Cheng
Some Tietz camera dimensions are slightly larger than a standard size, for example, 2084 x 2084 instead of the standard 2048 x 2048.  Some software will have trouble dealing with these dimensions.  It is recommended to force the camera to the lower standard size (some multiple of 2^n).  Modify the function that gets camera dimension in tietz.py, gatan.py, or tia.py depending on which camera you are using.
2
3
*  Go to C:\Python25\Lib\site-packages\pyScope\
4
5
*  Edit tietz.py, gatan.py, or tia.py with a plain text editor
6
7
8
*  Find the function "getCameraSize" and replace its contents to force it to return a "hard coded" size.  For example:
9
10
<pre> def getCameraSize(self):
11
    return {'x': 2048, 'y': 2048}</pre>