Author Topic: Exporting Density of States data  (Read 62 times)

0 Members and 1 Guest are viewing this topic.

Offline vivek-dhande

  • New ATK user
  • *
  • Posts: 2
  • Country: ca
  • Reputation: 0
    • View Profile
Exporting Density of States data
« on: January 14, 2023, 18:50 »
I have run a density of states like so and I would like to extract the raw data:

iv_characteristics.addProjectedLocalDensityOfStates(
    gate_source_voltages = back_gate_source_voltages,
    drain_source_voltages = drain_source_voltages,
    energies=numpy.linspace(-0.01, 0.035, 6000)*eV, # 10ueV steps
)

I opened the Projected Local Density of States plot and clicked on Export --> export data as text file, but I get an error:
Traceback (most recent call last):
  File "zipdir/NL/GUI/Graphics/Plotter/PlotView/PlotView.py", line 389, in save
  File "zipdir/NL/GUI/Graphics/Plotter/IO/Export.py", line 131, in writeTXT
  File "zipdir/NL/GUI/Graphics/Plotter/IO/Export.py", line 159, in _dataToTXT
  File "zipdir/NL/GUI/Graphics/Plotter/IO/Export.py", line 212, in _data1DtoTXT
NameError: name 'dataToTXT' is not defined

I'm not sure where and how I should define `dataToTXT` or fix this issue.

Thank you!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme ATK Wizard
  • *****
  • Posts: 5146
  • Country: dk
  • Reputation: 85
    • View Profile
    • QuantumATK at Synopsys
Re: Exporting Density of States data
« Reply #1 on: January 18, 2023, 01:13 »
Which version of QuantumATK are you using?