Skip to content

Commit 5201372

Browse files
committed
misc
1 parent f0675f5 commit 5201372

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mitim_modules/powertorch/utils/CALCtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def integrateQuadPoly(r, s, p=None):
8585
Computes int(s*dr), so if s is s*dV/dr, then int(s*dV), which is the full integral
8686
8787
From tgyro_volume_int.f90
88-
r - minor raidus
88+
r - minor radius
8989
s - s*volp
9090
9191
(Modified to avoid if statements and for loops)

src/mitim_tools/gacode_tools/utils/GACODErun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ def modifyInputs(
152152
var_orig = input_class.controls[ikey]
153153
var_new = value_to_change_to
154154
input_class.controls[ikey] = var_new
155-
elif ikey in input_class.geom:
155+
elif 'geom' in input_class.__dict__ and ikey in input_class.geom:
156156
var_orig = input_class.geom[ikey]
157157
var_new = value_to_change_to
158158
input_class.geom[ikey] = var_new
159-
elif ikey in input_class.plasma:
159+
elif 'plasma' in input_class.__dict__ and ikey in input_class.plasma:
160160
var_orig = input_class.plasma[ikey]
161161
var_new = value_to_change_to
162162
input_class.plasma[ikey] = var_new

0 commit comments

Comments
 (0)