Skip to content

Commit c9c4a91

Browse files
committed
Fix linting
1 parent 8b3c79f commit c9c4a91

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/boututils/View3D.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ def magnetic_field(g, X, Y, Z, rmin, rmax, zmin, zmax, Br, Bz, Btrz):
322322
bz = np.zeros(np.shape(X))
323323
bt = np.zeros(np.shape(X))
324324

325-
nx, ny, nz = np.shape(X)
326-
327325
mask = (rho >= rmin) & (rho <= rmax) & (Z >= zmin) & (Z <= zmax)
328326
k = np.argwhere(mask is True)
329327

@@ -361,8 +359,6 @@ def psi_field(g, X, Y, Z, rmin, rmax, zmin, zmax):
361359

362360
psi = np.zeros(np.shape(X))
363361

364-
nx, ny, nz = np.shape(X)
365-
366362
mask = (rho >= rmin) & (rho <= rmax) & (Z >= zmin) & (Z <= zmax)
367363
k = np.argwhere(mask is True)
368364

src/boututils/datafile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def _bout_dimensions_from_var(self, data):
523523
return defdims_list[len(np.shape(data))]
524524

525525
if bout_type == "string_t":
526-
nt, string_length = data.shape
526+
_, string_length = data.shape
527527
return ("t", f"char{string_length}")
528528
elif bout_type == "string":
529529
return (f"char{len(data)}",)

0 commit comments

Comments
 (0)