Skip to content

Commit 9313adc

Browse files
committed
Fix pt import bug
1 parent 4e27eeb commit 9313adc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oqupy/process_tensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,10 @@ def _read_file(self, filename: Text):
533533

534534
# transforms
535535
transform_in = np.array(self._f["transform_in"])
536-
if transform_in == 0.0:
536+
if np.allclose(transform_in, np.array([0.0])):
537537
transform_in = None
538538
transform_out = np.array(self._f["transform_out"])
539-
if transform_out == 0.0:
539+
if np.allclose(transform_out, np.array([0.0])):
540540
transform_out = None
541541

542542
# initial tensor and mpo/cap/lam tensors

0 commit comments

Comments
 (0)