(Final revision: May 31, 2024, 10:30)
Q-ATK Version: V-2023.12-SP1
HPC OS: Rocky Linux 8.7
User: Non-sudoer
Hello, this is my first post on the Q-ATK forum. There might be mistakes in my post, so I appreciate your understanding and any feedback.
I am currently working on the
ChargedPointDefect (CPD) module to calculate the charge transition level of defects. I followed the CPD tutorial (
https://docs.quantumatk.com/tutorials/charged_point_defect_study_object/charged_point_defect_study_object.html), using Workflows instead of Script Generator as Q-ATK2023 does not support Script Generator.
Also, there was a previous post about Charged defects in the Q-ATK forum, but it's a different problem.
(
https://forum.quantumatk.com/index.php?topic=11055.msg37116#msg37116)
I successfully obtained results for diamond with a boron substitutional defect (see attached image). However, the ChargedPointDefect module does not work for an interstitial defect. The two .py scripts for substitutional boron and interstitial hydrogen are attached.
Fortunately, I can export data from ChargedPointDefect .hdf5 file at Nanolab and it gives me formation energy for each charge state (See attached image). So only the GUI function that makes the charge transition plot doesn't work.Error: Missing 2 required positional arguments: 'supercell_repetitions' and 'charge_state' (The full error code is provided at the end of this post.)
In the attached .py scripts, 'supercell_repetitions' defaults to (1x1x1). The 'charge_state' parameter is correctly set in the CPD block, and it works for substitutional boron. However, using the same input scripts for interstitial hydrogen results in an input argument error.
It seems the ChargedPointDefect module works for substitutional defects but not for interstitial defects.
ChatGPT Suggestions:
1. Function Definition and Call Issue: The
'update' method or another method within the ChargedPointDefect class might be calling
'_defectSymmetryGroups' without properly passing the required arguments.
2. Incorrect Function Call: Another part of the code might be calling
'_defectSymmetryGroups' and missing the necessary arguments.
The
'ChargedPointDefect' library in the QATK.zip file is in .pye format, not .py, so I cannot access its content.
Can someone help me with this error?
Side Question: Does anyone know where the .vnl directory is? I couldn't find it. Some suggest that GUI issues can be solved by removing the ".hdf" file in the ".vnl" directory (
https://forum.quantumatk.com/index.php?topic=6335.0).
Thank you in advance.
======================================================================================================Error message when I try to open CPD .hdf5 result file of interstitial hydrogen from Nanolab GUI as belows:Exporting CPD .hdf5 file seems to be okay as I mentioned.
Traceback (most recent call last):
File "zipdir/NL/GUI/Tools/Data/DataCatalogWidget.py", line 844, in _onDoubleClicked
File "zipdir/NL/GUI/Tools/Data/DataCatalogWidget.py", line 945, in open
File "/tmp/tmp_xh4zvsfAddOns/ChargedPointDefectAnalyzer/ChargedPointDefectAnalyzerPlugin.py", line 112, in createWidget
File "/tmp/tmp_xh4zvsfAddOns/ChargedPointDefectAnalyzer/ChargedPointDefectAnalyzerWidget.py", line 91, in __init__
File "/tmp/tmp_xh4zvsfAddOns/ChargedPointDefectAnalyzer/DefectCollection.py", line 196, in addDefectCalculations
File "zipdir/NL/Defects/ChargedPointDefects/DefectResultsSummary.py", line 138, in __init__
File "zipdir/NL/Defects/ChargedPointDefects/DefectResultsSummary.py", line 1234, in loadData
File "zipdir/NL/Defects/ChargedPointDefects/DefectResultsSummary.py", line 1268, in loadDataStudy
TypeError: ChargedPointDefect._defectSymmetryGroups()
missing 2 required positional arguments: 'supercell_repetitions' and 'charge_state'