Project

General

Profile

Pyscope test result array » History » Version 3

Anchi Cheng, 02/02/2022 03:29 PM

1 3 Anchi Cheng
You should expect these to run without error.  The getImage() command should give a 2D numpy array like
2 1 Anchi Cheng
3
<pre>
4
array([[1000, 3400, 2300, ..., 1000,1200,3000],
5
         [1000, 3400, 2300, ..., 1000,1200,3000],
6
         [1000, 3400, 2300, ..., 1000,1200,3000],
7
         ...,
8
         [1000, 3400, 2300, ..., 1000,1200,3000],
9
         [1000, 3400, 2300, ..., 1000,1200,3000],
10
         [1000, 3400, 2300, ..., 1000,1200,3000],dtype=int16)
11
</pre>
12
13
The number and dtype depends on the camera.
14 3 Anchi Cheng
15
a.shape command should give a tuple of the camera dimension matching your camera.
16
For example, (4096,4096)
17 2 Anchi Cheng
18
*If you use python shell to do this test, some of the error will cause the shell window to close immediately.  Use Python IDLE instead in that case*