Skip to content

Commit

Permalink
Update gradientCalculation.py
Browse files Browse the repository at this point in the history
Fixed resistance calculation
  • Loading branch information
LUMC-LowFieldMRI authored Mar 15, 2021
1 parent 6cf28e0 commit bbb66b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradientCalculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def generateCoil(designParameters, **kwargs):
nrWires = designParameters['nrWires']
wires = calculateContour(streamFun, lengthTerm, nrWires)

wireDiameter = kwargs.get('wireDiameter', 1.5e-3) # metre
wireDiameter = designParameters['wireDiameter'] # metre
wireLength = calculateWireLength(wires, currRadius)
resistance = calculateResistance(wireLength, wireDiameter)
if INFO:
Expand Down

0 comments on commit bbb66b0

Please sign in to comment.