Skip to content

Commit

Permalink
Fix: as_spec setter shape check typos
Browse files Browse the repository at this point in the history
  • Loading branch information
missing-user committed Nov 13, 2024
1 parent e41d792 commit b47f9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simsopt/mhd/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ def as_spec(self):

@as_spec.setter
def as_spec(self, array):
if array.shape != [2*self.mntor+1, 2*self.mmpol+1]:
if array.shape != (2*self._mntor+1, 2*self._mmpol+1):
raise ValueError('Array size is not consistent witn mmpol and mntor')
self._array = array

Expand Down

0 comments on commit b47f9c1

Please sign in to comment.