@@ -167,7 +167,7 @@ def attributeRoundTrip(self, file_ending):
167167 series .set_attribute ("longdouble" , np .longdouble (1.23456789 ))
168168 series .set_attribute ("csingle" , np .complex64 (1. + 2.j ))
169169 series .set_attribute ("cdouble" , np .complex128 (3. + 4.j ))
170- if not file_ending in ["bp" , "bp4" , "bp5" ]:
170+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
171171 series .set_attribute ("clongdouble" , np .clongdouble (5. + 6.j ))
172172 # array of ...
173173 series .set_attribute ("arr_int16" , (np .int16 (23 ), np .int16 (26 ), ))
@@ -202,7 +202,7 @@ def attributeRoundTrip(self, file_ending):
202202 # series.set_attribute("l_cdouble",
203203 # [np.complex_(6.7+6.8j),
204204 # np.complex_(7.1+7.2j)])
205- # if not file_ending in ["bp", "bp4", "bp5"]:
205+ # if file_ending not in ["bp", "bp4", "bp5"]:
206206 # series.set_attribute("l_clongdouble",
207207 # [np.clongfloat(7.8e9-6.5e9j),
208208 # np.clongfloat(8.2e3-9.1e3j)])
@@ -231,7 +231,7 @@ def attributeRoundTrip(self, file_ending):
231231 series .set_attribute ("nparr_cdouble" ,
232232 np .array ([4.5 + 1.1j , 6.7 - 2.2j ],
233233 dtype = np .complex128 ))
234- if not file_ending in ["bp" , "bp4" , "bp5" ]:
234+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
235235 series .set_attribute ("nparr_clongdouble" ,
236236 np .array ([8.9 + 7.8j , 7.6 + 9.2j ],
237237 dtype = np .clongdouble ))
@@ -286,7 +286,7 @@ def attributeRoundTrip(self, file_ending):
286286 np .complex64 (1. + 2.j ))
287287 self .assertAlmostEqual (series .get_attribute ("cdouble" ),
288288 3. + 4.j )
289- if not file_ending in ["bp" , "bp4" , "bp5" ]:
289+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
290290 self .assertAlmostEqual (series .get_attribute ("clongdouble" ),
291291 5. + 6.j )
292292 # array of ... (will be returned as list)
@@ -315,7 +315,7 @@ def attributeRoundTrip(self, file_ending):
315315 # self.assertListEqual(series.get_attribute("l_cdouble"),
316316 # [np.complex128(6.7 + 6.8j),
317317 # np.double(7.1 + 7.2j)])
318- # if not file_ending in ["bp", "bp4", "bp5"]:
318+ # if file_ending not in ["bp", "bp4", "bp5"]:
319319 # self.assertListEqual(series.get_attribute("l_clongdouble"),
320320 # [np.clongdouble(7.8e9 - 6.5e9j),
321321 # np.clongdouble(8.2e3 - 9.1e3j)])
@@ -342,7 +342,7 @@ def attributeRoundTrip(self, file_ending):
342342 np .testing .assert_almost_equal (
343343 series .get_attribute ("nparr_cdouble" ),
344344 [4.5 + 1.1j , 6.7 - 2.2j ])
345- if not file_ending in ["bp" , "bp4" , "bp5" ]: # not in ADIOS 1.13.1 nor ADIOS 2.7.0
345+ if file_ending not in ["bp" , "bp4" , "bp5" ]: # not in ADIOS 1.13.1 nor ADIOS 2.7.0
346346 np .testing .assert_almost_equal (
347347 series .get_attribute ("nparr_clongdouble" ),
348348 [8.9 + 7.8j , 7.6 + 9.2j ])
@@ -453,7 +453,7 @@ def makeConstantRoundTrip(self, file_ending):
453453 DS (np .dtype ("complex128" ), extent ))
454454 ms ["complex128" ][SCALAR ].make_constant (
455455 np .complex128 (1.234567 + 2.345678j ))
456- if not file_ending in ["bp" , "bp4" , "bp5" ]:
456+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
457457 ms ["clongdouble" ][SCALAR ].reset_dataset (
458458 DS (np .dtype ("clongdouble" ), extent ))
459459 ms ["clongdouble" ][SCALAR ].make_constant (
@@ -534,7 +534,7 @@ def makeConstantRoundTrip(self, file_ending):
534534 == np .dtype ('complex64' ))
535535 self .assertTrue (ms ["complex128" ][SCALAR ].load_chunk (o , e ).dtype
536536 == np .dtype ('complex128' ))
537- if not file_ending in ["bp" , "bp4" , "bp5" ]:
537+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
538538 self .assertTrue (ms ["clongdouble" ][SCALAR ].load_chunk (o , e )
539539 .dtype == np .dtype ('clongdouble' ))
540540
@@ -561,7 +561,7 @@ def makeConstantRoundTrip(self, file_ending):
561561 np .complex64 (1.234 + 2.345j ))
562562 self .assertEqual (ms ["complex128" ][SCALAR ].load_chunk (o , e ),
563563 np .complex128 (1.234567 + 2.345678j ))
564- if not file_ending in ["bp" , "bp4" , "bp5" ]:
564+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
565565 self .assertEqual (ms ["clongdouble" ][SCALAR ].load_chunk (o , e ),
566566 np .clongdouble (1.23456789 + 2.34567890j ))
567567
@@ -600,7 +600,7 @@ def makeDataRoundTrip(self, file_ending):
600600 ms ["complex128" ][SCALAR ].store_chunk (
601601 np .ones (extent , dtype = np .complex128 ) *
602602 np .complex128 (1.234567 + 2.345678j ))
603- if not file_ending in ["bp" , "bp4" , "bp5" ]:
603+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
604604 ms ["clongdouble" ][SCALAR ].reset_dataset (
605605 DS (np .dtype ("clongdouble" ), extent ))
606606 ms ["clongdouble" ][SCALAR ].store_chunk (
@@ -630,12 +630,12 @@ def makeDataRoundTrip(self, file_ending):
630630
631631 dc64 = ms ["complex64" ][SCALAR ].load_chunk (o , e )
632632 dc128 = ms ["complex128" ][SCALAR ].load_chunk (o , e )
633- if not file_ending in ["bp" , "bp4" , "bp5" ]:
633+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
634634 dc256 = ms ["clongdouble" ][SCALAR ].load_chunk (o , e )
635635
636636 self .assertTrue (dc64 .dtype == np .dtype ('complex64' ))
637637 self .assertTrue (dc128 .dtype == np .dtype ('complex128' ))
638- if not file_ending in ["bp" , "bp4" , "bp5" ]:
638+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
639639 self .assertTrue (
640640 dc256 .dtype == np .dtype ('clongdouble' ))
641641
@@ -645,7 +645,7 @@ def makeDataRoundTrip(self, file_ending):
645645 np .complex64 (1.234 + 2.345j ))
646646 self .assertEqual (dc128 ,
647647 np .complex128 (1.234567 + 2.345678j ))
648- if not file_ending in ["bp" , "bp4" , "bp5" ]:
648+ if file_ending not in ["bp" , "bp4" , "bp5" ]:
649649 self .assertEqual (dc256 ,
650650 np .clongdouble (1.23456789 + 2.34567890j ))
651651
0 commit comments