Author Topic: error in device  (Read 2779 times)

0 Members and 1 Guest are viewing this topic.

Offline Sam Rice

  • New QuantumATK user
  • *
  • Posts: 3
  • Reputation: 0
    • View Profile
error in device
« 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? :-\ :-\

Offline lknife

  • QuantumATK Guru
  • ****
  • Posts: 214
  • Country: us
  • Reputation: 1
    • View Profile
Re: error in device
« Reply #1 on: October 9, 2017, 03:31 »
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.