Skip to content

Commit ba741a2

Browse files
committed
style
1 parent b4e6956 commit ba741a2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pyobs/IO/bdio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,10 @@ def save(fname, *args):
477477
pyobs.assertion(
478478
a.size == 1, "Only single observables can be stored in bdio format"
479479
)
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+
)
481484
encode_bdio_observable(f, a)
482485
md5 = hashlib.md5(f.buf).digest()
483486
f.write_record(f.buf, 2)

pyobs/IO/xml.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ def import_cdata(cd):
176176

177177
def save(fname, obs):
178178
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+
181183
def delta2array(key, delta):
182184
pyobs.assertion(
183185
len(delta.mask) == obs.size, "Observables with sub-masks not supported"

0 commit comments

Comments
 (0)