Skip to content

Commit

Permalink
Fix bad logic for re-compute
Browse files Browse the repository at this point in the history
  • Loading branch information
domfournier committed Dec 4, 2024
1 parent b9aeeb6 commit d1c7aa8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions simpeg/dask/potential_fields/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def dask_linear_operator(self):
# Check that loaded kernel matches supplied data and mesh
print("Zarr file detected with same shape and chunksize ... re-loading")
return kernel
else:
print("Writing Zarr file to disk")
with ProgressBar():
print("Saving kernel to zarr: " + sens_name)
kernel = array.to_zarr(
stack, sens_name, compute=True, return_stored=True, overwrite=True
)

print("Writing Zarr file to disk")
with ProgressBar():
print("Saving kernel to zarr: " + sens_name)
kernel = array.to_zarr(
stack, sens_name, compute=True, return_stored=True, overwrite=True
)
elif forward_only:
with ProgressBar():
print("Forward calculation: ")
Expand Down

0 comments on commit d1c7aa8

Please sign in to comment.