Skip to content

Commit

Permalink
Allow lists
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Nov 19, 2023
1 parent ec9f975 commit 684dd73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/libneo/mgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def write(self, filename):
f.createDimension("stringsize", 30)
f.createDimension("external_coil_groups", len(self.coil_group))
f.createDimension("dim_00001", 1)
f.createDimension("external_coils", self.coil_current.size)
f.createDimension("external_coils", len(self.coil_current))
f.createDimension("rad", self.ir)
f.createDimension("zee", self.jz)
f.createDimension("phi", self.kp)
Expand Down Expand Up @@ -156,7 +156,7 @@ def write(self, filename):
f.variables["jz"][:] = self.jz
f.variables["kp"][:] = self.kp
f.variables["nfp"][:] = self.nfp
f.variables["nextcur"][:] = self.coil_current.size
f.variables["nextcur"][:] = len(self.coil_current)
f.variables["rmin"][:] = self.rmin
f.variables["zmin"][:] = self.zmin
f.variables["rmax"][:] = self.rmax
Expand Down

0 comments on commit 684dd73

Please sign in to comment.