Skip to content

Commit 6eecc1c

Browse files
committed
Repair instantiation of Wires with tuple of int
1 parent 57a2f23 commit 6eecc1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

simpeg/maps/_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,10 @@ def __init__(self, *args):
11501150
for arg in args:
11511151

11521152
if isinstance(arg[1], (int, np.integer)):
1153+
1154+
if not getattr(self, "_nP", None):
1155+
self._nP = int(np.sum([w[1] for w in args]))
1156+
11531157
wire = Projection(self.nP, slice(start, start + arg[1]))
11541158
start += arg[1]
11551159
else:

0 commit comments

Comments
 (0)