Author Topic: Conductance calculation  (Read 1505 times)

0 Members and 1 Guest are viewing this topic.

Offline chethankumar_m

  • Regular QuantumATK user
  • **
  • Posts: 15
  • Country: in
  • Reputation: 0
    • View Profile
Conductance calculation
« on: February 14, 2017, 07:10 »
hi,
I am trying to calculate conductance from transmission spectrum and I followed the previous tutorials and wrote the input file as below. but I am getting an error like

"File "cond100.py", line 4
    conductance = transmission_spectrum.conductance(electrode_temperatures=[300.,t]*Kelvin)
IndentationError: unexpected indent"

please mention if any modification has to be made or any other method to calculate Conductance.

Thank you                 

Offline Ulrik G. Vej-Hansen

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 425
  • Country: dk
  • Reputation: 8
    • View Profile
Re: Conductance calculation
« Reply #1 on: February 14, 2017, 08:59 »
You need to remove the indentations in line 4 and 5. In Python, indentation is used to indicate code belonging to a block, and conversely, it cannot be used outside one of those. However, this will also give an error, because you have a "t" in line  which is never defined. Actually, you should remove line 5 entirely, and then amend the current line 7 accordingly.
« Last Edit: February 14, 2017, 09:07 by Ulrik G. Vej-Hansen »