QuantumATK Forum
QuantumATK => General Questions and Answers => Topic started by: Sam Rice on October 8, 2017, 20:34
-
Hi
when I run attached file,I face with this error:
Timing: Total Per Step %
--------------------------------------------------------------------------------
Loading Modules + MPI : 8.80 s 8.80 s 99.97% |=============|
--------------------------------------------------------------------------------
Total : 8.80 s
File "device.py", line 171
conductance_list =transmission_spectrum.conductance(
^
IndentationError: expected an indented block
what's wrong? :-\ :-\
-
As to the For-loop at line 171 and line 172, you need to add space (make some indentation) at the beginning of lines, to tell the calculator that these two lines belong to the For-loop. You can refer to the rules about indentation for python programming.