Author Topic: restart stopped calculation error  (Read 2981 times)

0 Members and 1 Guest are viewing this topic.

Offline Jenny

  • Heavy QuantumATK user
  • ***
  • Posts: 61
  • Reputation: 0
    • View Profile
restart stopped calculation error
« on: June 17, 2013, 18:00 »
Hi, everyone.

Recently, I tried to use restarting stopped calculation as the website shows.
http://quantumwise.com/publications/tutorials/mini-tutorials/142-restarting-stopped-calculations

But when I run the script, the error comes as following

Traceback (most recent call last):
  File "c:\users\mems\appdata\local\temp\1460355686016143.py", line 845, in <module>
    device_configuration.update(force_restart=True)
AttributeError: 'list' object has no attribute 'update'

Does anyone know what the problem is?

Thank you all!

Jenny

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5565
  • Country: dk
  • Reputation: 93
    • View Profile
    • QuantumATK at Synopsys
Re: restart stopped calculation error
« Reply #1 on: June 17, 2013, 23:44 »
Somewhere you are doing

device_configuration = nlread("file.nc")

It should be

device_configuration = nlread("file.nc")[-1]

provided that there is only one configuration in the file.

Offline Jenny

  • Heavy QuantumATK user
  • ***
  • Posts: 61
  • Reputation: 0
    • View Profile
Re: restart stopped calculation error
« Reply #2 on: June 19, 2013, 20:42 »
Somewhere you are doing

device_configuration = nlread("file.nc")

It should be

device_configuration = nlread("file.nc")[-1]

provided that there is only one configuration in the file.

Thank you for your reply. It seems that even I successfully restart the calculation, the calculation starts from the initial.

Anyway, thank you all the same.