@@ -31,7 +31,7 @@ def testGaussianApodization(self):
3131
3232 for z in (- 100 , 0 , 100 ):
3333 im = aberrated_particle .resolve (z = z )
34- self .assertIsInstance (im , np . ndarray )
34+ self .assertIsInstance (im , Image )
3535 self .assertEqual (im .shape , (64 , 48 , 1 ))
3636
3737 aberrated_particle .store_properties (True )
@@ -53,7 +53,7 @@ def testPiston(self):
5353 aberrated_particle = aberrated_optics (self .particle )
5454 for z in (- 100 , 0 , 100 ):
5555 im = aberrated_particle .resolve (z = z )
56- self .assertIsInstance (im , np . ndarray )
56+ self .assertIsInstance (im , Image )
5757 self .assertEqual (im .shape , (64 , 48 , 1 ))
5858
5959 aberrated_particle .store_properties (True )
@@ -75,7 +75,7 @@ def testVerticalTilt(self):
7575 aberrated_particle = aberrated_optics (self .particle )
7676 for z in (- 100 , 0 , 100 ):
7777 im = aberrated_particle .resolve (z = z )
78- self .assertIsInstance (im , np . ndarray )
78+ self .assertIsInstance (im , Image )
7979 self .assertEqual (im .shape , (64 , 48 , 1 ))
8080
8181 aberrated_particle .store_properties (True )
@@ -97,7 +97,7 @@ def testHorizontalTilt(self):
9797 aberrated_particle = aberrated_optics (self .particle )
9898 for z in (- 100 , 0 , 100 ):
9999 im = aberrated_particle .resolve (z = z )
100- self .assertIsInstance (im , np . ndarray )
100+ self .assertIsInstance (im , Image )
101101 self .assertEqual (im .shape , (64 , 48 , 1 ))
102102
103103 aberrated_particle .store_properties (True )
@@ -119,7 +119,7 @@ def testObliqueAstigmatism(self):
119119 aberrated_particle = aberrated_optics (self .particle )
120120 for z in (- 100 , 0 , 100 ):
121121 im = aberrated_particle .resolve (z = z )
122- self .assertIsInstance (im , np . ndarray )
122+ self .assertIsInstance (im , Image )
123123 self .assertEqual (im .shape , (64 , 48 , 1 ))
124124
125125 aberrated_particle .store_properties (True )
@@ -141,7 +141,7 @@ def testDefocus(self):
141141 aberrated_particle = aberrated_optics (self .particle )
142142 for z in (- 100 , 0 , 100 ):
143143 im = aberrated_particle .resolve (z = z )
144- self .assertIsInstance (im , np . ndarray )
144+ self .assertIsInstance (im , Image )
145145 self .assertEqual (im .shape , (64 , 48 , 1 ))
146146
147147 aberrated_particle .store_properties (True )
@@ -163,7 +163,7 @@ def testAstigmatism(self):
163163 aberrated_particle = aberrated_optics (self .particle )
164164 for z in (- 100 , 0 , 100 ):
165165 im = aberrated_particle .resolve (z = z )
166- self .assertIsInstance (im , np . ndarray )
166+ self .assertIsInstance (im , Image )
167167 self .assertEqual (im .shape , (64 , 48 , 1 ))
168168
169169 aberrated_particle .store_properties (True )
@@ -185,7 +185,7 @@ def testObliqueTrefoil(self):
185185 aberrated_particle = aberrated_optics (self .particle )
186186 for z in (- 100 , 0 , 100 ):
187187 im = aberrated_particle .resolve (z = z )
188- self .assertIsInstance (im , np . ndarray )
188+ self .assertIsInstance (im , Image )
189189 self .assertEqual (im .shape , (64 , 48 , 1 ))
190190
191191 aberrated_particle .store_properties (True )
@@ -207,7 +207,7 @@ def testVerticalComa(self):
207207 aberrated_particle = aberrated_optics (self .particle )
208208 for z in (- 100 , 0 , 100 ):
209209 im = aberrated_particle .resolve (z = z )
210- self .assertIsInstance (im , np . ndarray )
210+ self .assertIsInstance (im , Image )
211211 self .assertEqual (im .shape , (64 , 48 , 1 ))
212212
213213 aberrated_particle .store_properties (True )
@@ -229,7 +229,7 @@ def testHorizontalComa(self):
229229 aberrated_particle = aberrated_optics (self .particle )
230230 for z in (- 100 , 0 , 100 ):
231231 im = aberrated_particle .resolve (z = z )
232- self .assertIsInstance (im , np . ndarray )
232+ self .assertIsInstance (im , Image )
233233 self .assertEqual (im .shape , (64 , 48 , 1 ))
234234
235235 aberrated_particle .store_properties (True )
@@ -251,7 +251,7 @@ def testTrefoil(self):
251251 aberrated_particle = aberrated_optics (self .particle )
252252 for z in (- 100 , 0 , 100 ):
253253 im = aberrated_particle .resolve (z = z )
254- self .assertIsInstance (im , np . ndarray )
254+ self .assertIsInstance (im , Image )
255255 self .assertEqual (im .shape , (64 , 48 , 1 ))
256256
257257 aberrated_particle .store_properties (True )
@@ -273,7 +273,7 @@ def testSphericalAberration(self):
273273 aberrated_particle = aberrated_optics (self .particle )
274274 for z in (- 100 , 0 , 100 ):
275275 im = aberrated_particle .resolve (z = z )
276- self .assertIsInstance (im , np . ndarray )
276+ self .assertIsInstance (im , Image )
277277 self .assertEqual (im .shape , (64 , 48 , 1 ))
278278
279279 aberrated_particle .store_properties (True )
0 commit comments