Author Topic: Moment Tensor Potential Training Attributes  (Read 282 times)

0 Members and 1 Guest are viewing this topic.

Offline aknair

  • New ATK user
  • *
  • Posts: 5
  • Country: ca
  • Reputation: 0
    • View Profile
Moment Tensor Potential Training Attributes
« on: February 26, 2023, 03:47 »
Hi,

I am getting this following error while plotting scatter plots comparing the energy, force and stress computed from MTP and reference method.


Traceback (most recent call last):
  File "Plot.py", line 2, in <module>
    moment_tensor_potential_training._nlplotScatter(fit_index=0)
  File "zipdir\NL\Study\MomentTensorPotential\MomentTensorPotentialTraining.py", line 1661, in _nlplotScatter
  File "zipdir\NL\GUI\Graphics\Plotter\Utilities\Scripting.py", line 97, in show
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotView.py", line 59, in __init__
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\BasicPlotView.py", line 80, in __init__
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotController.py", line 169, in plot
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotController.py", line 189, in _constructDelegatesInLayout
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotController.py", line 227, in _constructDelegatesInFrame
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotController.py", line 250, in _constructDelegatesInFrameForModel
  File "zipdir\NL\GUI\Graphics\Plotter\PlotView\PlotController.py", line 287, in _constructDelegateInFrameForItem
TypeError: 'NoneType' object is not callable


Also, Could anyone let me know what are the attributes for the Moment Tensor Potential Training object.


Offline sureshko

  • QuantumATK Staff
  • Regular ATK user
  • *****
  • Posts: 10
  • Country: dk
  • Reputation: 0
    • View Profile
Re: Moment Tensor Potential Training Attributes
« Reply #1 on: February 27, 2023, 12:50 »
Just checked, and the command 'moment_tensor_potential_training._nlplotScatter(fit_index=0)' works fine in the current release. So, I am not sure why you are getting the error message. Can you give/share additional information?


Offline aknair

  • New ATK user
  • *
  • Posts: 5
  • Country: ca
  • Reputation: 0
    • View Profile
Re: Moment Tensor Potential Training Attributes
« Reply #2 on: February 27, 2023, 22:07 »
Just checked, and the command 'moment_tensor_potential_training._nlplotScatter(fit_index=0)' works fine in the current release. So, I am not sure why you are getting the error message. Can you give/share additional information?

Thanks. I am currently using the ATK 2022.03 version. It may be because of that. However, the tutorial posted for generating Scatter plot was for 2022.03 version as well.
https://docs.quantumatk.com/tutorials/mtp_hfo2/mtp_hfo2.html

Offline sureshko

  • QuantumATK Staff
  • Regular ATK user
  • *****
  • Posts: 10
  • Country: dk
  • Reputation: 0
    • View Profile
Re: Moment Tensor Potential Training Attributes
« Reply #3 on: February 28, 2023, 10:20 »
Are you using the SP1 version of 2022.03? If not, it should work with that.

Offline aknair

  • New ATK user
  • *
  • Posts: 5
  • Country: ca
  • Reputation: 0
    • View Profile
Re: Moment Tensor Potential Training Attributes
« Reply #4 on: March 6, 2023, 02:49 »
Are you using the SP1 version of 2022.03? If not, it should work with that.

Thank you