Skip to content

Commit d1c7aa8

Browse files
committed
Fix bad logic for re-compute
1 parent b9aeeb6 commit d1c7aa8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • simpeg/dask/potential_fields

simpeg/dask/potential_fields/base.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ def dask_linear_operator(self):
9393
# Check that loaded kernel matches supplied data and mesh
9494
print("Zarr file detected with same shape and chunksize ... re-loading")
9595
return kernel
96-
else:
97-
print("Writing Zarr file to disk")
98-
with ProgressBar():
99-
print("Saving kernel to zarr: " + sens_name)
100-
kernel = array.to_zarr(
101-
stack, sens_name, compute=True, return_stored=True, overwrite=True
102-
)
96+
97+
print("Writing Zarr file to disk")
98+
with ProgressBar():
99+
print("Saving kernel to zarr: " + sens_name)
100+
kernel = array.to_zarr(
101+
stack, sens_name, compute=True, return_stored=True, overwrite=True
102+
)
103103
elif forward_only:
104104
with ProgressBar():
105105
print("Forward calculation: ")

0 commit comments

Comments
 (0)