File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,10 @@ def save(fname, *args):
477
477
pyobs .assertion (
478
478
a .size == 1 , "Only single observables can be stored in bdio format"
479
479
)
480
- pyobs .assert (numpy .iscomplex .obj (a .mean ) is False , "Complex observables not supported" )
480
+ pyobs .assertion (
481
+ numpy .iscomplex .obj (a .mean ) is False ,
482
+ "Complex observables not supported" ,
483
+ )
481
484
encode_bdio_observable (f , a )
482
485
md5 = hashlib .md5 (f .buf ).digest ()
483
486
f .write_record (f .buf , 2 )
Original file line number Diff line number Diff line change @@ -176,8 +176,10 @@ def import_cdata(cd):
176
176
177
177
def save (fname , obs ):
178
178
pyobs .assertion (len (obs .shape ) == 1 , "Only 1-D observables supported" )
179
- pyobs .assertion (numpy .iscomplexobj (obs .mean ) is False , "Complex observables not supported" )
180
-
179
+ pyobs .assertion (
180
+ numpy .iscomplexobj (obs .mean ) is False , "Complex observables not supported"
181
+ )
182
+
181
183
def delta2array (key , delta ):
182
184
pyobs .assertion (
183
185
len (delta .mask ) == obs .size , "Observables with sub-masks not supported"
You can’t perform that action at this time.
0 commit comments