QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: aknair on February 26, 2023, 03:47

Title: Moment Tensor Potential Training Attributes
Post by: aknair 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.

Title: Re: Moment Tensor Potential Training Attributes
Post by: sureshko 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?

Title: Re: Moment Tensor Potential Training Attributes
Post by: aknair 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
Title: Re: Moment Tensor Potential Training Attributes
Post by: sureshko on February 28, 2023, 10:20
Are you using the SP1 version of 2022.03? If not, it should work with that.
Title: Re: Moment Tensor Potential Training Attributes
Post by: aknair on March 6, 2023, 02:49
Are you using the SP1 version of 2022.03? If not, it should work with that.

Thank you