Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBStudio parser #154

Merged
merged 51 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1875eff
Initial commit TBS parser
JosePizarro3 Apr 20, 2023
8506d04
Changed name from TBS to TBStudio
JosePizarro3 Apr 25, 2023
a7e2b33
Added tight binding studio parser
mohammadnakhaee May 15, 2023
689733d
parse SK method
mohammadnakhaee May 16, 2023
a2848e7
fix bugs
mohammadnakhaee May 16, 2023
189079c
fix bugs
mohammadnakhaee May 17, 2023
650564c
added program name
mohammadnakhaee May 17, 2023
3a7ac44
Initial commit TBS parser
JosePizarro3 Apr 20, 2023
70d2f65
Changed name from TBS to TBStudio
JosePizarro3 Apr 25, 2023
92ba6fd
Added tight binding studio parser
mohammadnakhaee May 15, 2023
212e7d4
parse SK method
mohammadnakhaee May 16, 2023
2f853e4
fix bugs
mohammadnakhaee May 16, 2023
bc002df
fix bugs
mohammadnakhaee May 17, 2023
8247e82
Added dft-to-tb workflow
mohammadnakhaee May 17, 2023
c0e8220
compatiblity with the newest version
mohammadnakhaee Jul 14, 2023
e004ae7
Initial commit TBS parser
JosePizarro3 Apr 20, 2023
a89f3d3
Changed name from TBS to TBStudio
JosePizarro3 Apr 25, 2023
f5bc640
Added tight binding studio parser
mohammadnakhaee May 15, 2023
4541ec5
parse SK method
mohammadnakhaee May 16, 2023
202ae4d
fix bugs
mohammadnakhaee May 16, 2023
eb2c8a9
fix bugs
mohammadnakhaee May 17, 2023
c434c46
added program name
mohammadnakhaee May 17, 2023
f1254b2
Initial commit TBS parser
JosePizarro3 Apr 20, 2023
9deafac
Changed name from TBS to TBStudio
JosePizarro3 Apr 25, 2023
90f9eba
Added dft-to-tb workflow
mohammadnakhaee May 17, 2023
140834a
compatiblity with the newest version
mohammadnakhaee Jul 14, 2023
aa5e93d
Fixed workflow import after rebasing
JosePizarro3 Jul 17, 2023
49bde2d
fix bug
mohammadnakhaee Jul 17, 2023
6ad7d0f
refactor TightBinding to TB in tbstudio and wannier90
mohammadnakhaee Aug 17, 2023
c09f42f
parse sk integrals and orbitals
mohammadnakhaee Aug 18, 2023
7977c27
fix parser and the model
mohammadnakhaee Aug 18, 2023
514c503
show the tight-binding band-structure and the dft band-structure in w…
mohammadnakhaee Aug 18, 2023
bc8f4a9
fix the band-structures in workflow and SinglePoint
mohammadnakhaee Aug 18, 2023
e103ff1
added firstPrinciples-TB workflow
mohammadnakhaee Aug 21, 2023
c0be7ba
added fermi level
mohammadnakhaee Aug 23, 2023
3e96a78
fixed Tight-Binding BZ
mohammadnakhaee Aug 24, 2023
c96aa28
Added the new workflow implementation
mohammadnakhaee Aug 24, 2023
719110d
Added a test for parser
mohammadnakhaee Aug 25, 2023
93ca316
remove the middle parsed dictionary
mohammadnakhaee Aug 28, 2023
d0b72c9
Harmonized the workflow name with the method name
mohammadnakhaee Aug 28, 2023
a1b8136
sec_atoms.labels is the correct atomic types
mohammadnakhaee Oct 13, 2023
ed2a852
correct the name of the tasks to be consistent
mohammadnakhaee Oct 13, 2023
6309bac
test the labels instead of species
mohammadnakhaee Oct 13, 2023
da24d6d
add a default empty array for protection
mohammadnakhaee Oct 17, 2023
b9d9367
fix lint
mohammadnakhaee Oct 24, 2023
0b0d951
fix pylint
mohammadnakhaee Oct 25, 2023
94c566e
Added test tbstudio file
mohammadnakhaee Nov 8, 2023
4d06783
Rafactor and Added error handling
mohammadnakhaee Nov 9, 2023
f66e7fc
Remove unused import
mohammadnakhaee Nov 10, 2023
a6e2521
Fix Wannier90 method.tb
JosePizarro3 Nov 13, 2023
24b8c83
fix ruff
JosePizarro3 Nov 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions electronicparsers/tbstudio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .parser import TBStudioParser
31 changes: 31 additions & 0 deletions electronicparsers/tbstudio/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys
import json
import logging

from nomad.utils import configure_logging
from nomad.datamodel import EntryArchive
from electronicparsers.tbstudio import TBStudioParser

if __name__ == "__main__":
configure_logging(console_log_level=logging.DEBUG)
archive = EntryArchive()
TBStudioParser().parse(sys.argv[1], archive, logging)
json.dump(archive.m_to_dict(), sys.stdout, indent=2)
25 changes: 25 additions & 0 deletions electronicparsers/tbstudio/metainfo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from nomad.metainfo import Environment

from . import tbstudio


m_env = Environment()
m_env.m_add_sub_section(Environment.packages, tbstudio.m_package)
27 changes: 27 additions & 0 deletions electronicparsers/tbstudio/metainfo/tbstudio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD.
# See https://nomad-lab.eu for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import numpy as np # pylint: disable=unused-import
import typing # pylint: disable=unused-import
from nomad.metainfo import ( # pylint: disable=unused-import
MSection, MCategory, Category, Package, Quantity, Section, SubSection, SectionProxy,
Reference
)


m_package = Package()
24 changes: 24 additions & 0 deletions electronicparsers/tbstudio/nomad_plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
code_category: Atomistic code
code_homepage: https://tight-binding.com/
code_name: TBStudio
metadata:
codeCategory: Atomistic code
codeLabel: TBStudio
codeLabelStyle: All in capitals
codeName: tbstudio
codeUrl: https://tight-binding.com/
parserDirName: dependencies/electronic/electronicparsers/tbstudio/
parserGitUrl: https://github.com/nomad-coe/electronic-parsers.git
parserSpecific: ''
preamble: ''
status: production
tableOfFiles: '| Input Filename | Description |
| --- | --- |
| `*.tbm` | **Mainfile**: output binary file |
'
name: parsers/tbstudio
parser_class_name: electronicparsers.tbstudio.parser.TBStudioParser
python_package: electronicparsers.tbstudio
Loading