Skip to content

Commit 1962419

Browse files
committed
Minor clean ups
1 parent 2a2e8dd commit 1962419

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

simpeg/dask/potential_fields/magnetics/simulation_pde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def dask_getJtJdiag(self, m, W=None, f=None):
6565
dtype=np.float32,
6666
shape=(
6767
len(block),
68-
self.active_cells.sum(),
68+
len(cell_centers),
6969
),
7070
)
7171
)

simpeg/directives/_save_geoh5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def write(self, iteration: int, **_):
486486
if (channel_name in child.name and isinstance(child, FloatData))
487487
]
488488

489-
if children[0] is not None:
489+
if children:
490490
properties += children
491491

492492
if len(properties) == 0:

0 commit comments

Comments
 (0)