Project

General

Profile

Strange dimension cameras » History » Revision 2

Revision 1 (Anchi Cheng, 02/02/2011 10:50 AM) → Revision 2/3 (Jim Pulokas, 11/07/2012 10:52 AM)

_NOTE AS OF r17234: configure width and height of camera in instruments.cfg rather than editing python code as described below.    Please modify instructions below upon final release_ 

 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. 

 *    Go to C:\Python25\Lib\site-packages\pyScope\ 

 *    Edit tietz.py, gatan.py, or tia.py with a plain text editor 


 *    Find the function "getCameraSize" and replace its contents to force it to return a "hard coded" size.    For example: 

 <pre> def getCameraSize(self): 
     return {'x': 2048, 'y': 2048}</pre>