Skip to content

Commit

Permalink
fix error in reading VNC array from file
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed Sep 13, 2023
1 parent 4165ee1 commit 8801119
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/simsopt/field/normal_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ def from_spec(cls, filename):
if ph['istellsym']:
vnc = None
else:
vnc = np.asarray(ph['vnc'][1:])
vnc = np.asarray(ph['vnc'])

nf = cls(
nfp=ph['nfp'],
stellsym=ph['istellsym'],
mpol=ph['Mpol'],
normal_field = cls(
nfp=ph['nfp'],
stellsym=bool(ph['istellsym']),
mpol=ph['Mpol'],
ntor=ph['Ntor'],
vns=vns,
vnc=vnc
)

return nf
return normal_field

def get_index_in_dofs(self, m, n, mpol=None, ntor=None, even=False):
"""
Expand Down

0 comments on commit 8801119

Please sign in to comment.