-
Notifications
You must be signed in to change notification settings - Fork 864
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
Improve types for electronic_structure.{bandstructure/cohp}
#3873
Merged
janosh
merged 63 commits into
materialsproject:master
from
DanielYang59:type-elec-struct
Aug 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
2a55e45
add types for bandstructure
DanielYang59 6444064
Merge branch 'master' into type-elec-struct
DanielYang59 1cd0037
relocate magic methods to top
DanielYang59 79e8868
add some types
DanielYang59 d00912c
Merge branch 'type-elec-struct' of https://github.com/DanielYang59/py…
DanielYang59 8a4c4b5
fix type errors in bandstructure
DanielYang59 51ffc18
temp save
DanielYang59 0298442
Merge branch 'master' into type-elec-struct
DanielYang59 09d62ad
Merge branch 'master' into type-elec-struct
DanielYang59 0d0615c
first run of cohp, mypy errors to fix
DanielYang59 319dfa8
fix collection generation
DanielYang59 a29ef98
add type `SpinLike` and case tweaks
DanielYang59 d47008c
reduce repetition for `__str__` of `IcohpValue`
DanielYang59 0407f52
simplify condition
DanielYang59 3dd5d7c
reduce indentation level
DanielYang59 0e75e0d
clarify `translation`
DanielYang59 b7c03da
clarify `list_num` and other docstrings
DanielYang59 7732736
clarify `label` as str
DanielYang59 aaf9f29
more type and docstring improvements
DanielYang59 950eb10
fix unit test
DanielYang59 5a2ec9f
fix most mypy errors
DanielYang59 0afb7c2
fix remaining mypy errors
DanielYang59 5fcf236
add DEBUG tag
DanielYang59 796c379
reduce code repetition
DanielYang59 9551db2
Need Confirm: set `translation` as tuple
DanielYang59 c188030
pre-commit auto-fixes
pre-commit-ci[bot] e21c5ed
more type clarify
DanielYang59 3ae88d0
Merge branch 'master' into type-elec-struct
DanielYang59 5b81360
clarify `num` argument
DanielYang59 5f760df
clarify docstring of `bandstructure`
DanielYang59 e558ac7
more minor tweaks
DanielYang59 4c0bb04
clarify type of labels_dict
DanielYang59 8e25238
replace unnecessary single-item list extend with append
DanielYang59 00b7134
fix typo
DanielYang59 952e206
relocate magic method
DanielYang59 4ee908d
clarify type of `list_icohp`
DanielYang59 3aef211
remove unused type alias
DanielYang59 61379c1
revert undesired rename
DanielYang59 92e7df8
replace more single item extend with append
DanielYang59 c397e1c
simplify dict generation
DanielYang59 8cfaa33
fix downstream lobsterpy error
DanielYang59 4641d88
Merge branch 'master' into type-elec-struct
DanielYang59 60f9aa6
Merge branch 'master' into type-elec-struct
DanielYang59 5eefb53
tweak module docstring
DanielYang59 132b9bb
Merge branch 'master' into type-elec-struct
DanielYang59 bbfbaa2
Merge branch 'master' into type-elec-struct
DanielYang59 629b480
Merge branch 'master' into type-elec-struct
DanielYang59 9cd7df8
Merge branch 'master' into type-elec-struct
DanielYang59 7200a3a
Merge branch 'master' into type-elec-struct
DanielYang59 c3fe9c6
merge master
DanielYang59 eb36650
need confirm: allow efermi to be None
DanielYang59 61bc066
Merge branch 'master' into type-elec-struct
DanielYang59 94ea368
Merge branch 'master' into type-elec-struct
DanielYang59 1da7359
Merge branch 'master' into type-elec-struct
DanielYang59 220a398
pre-commit auto-fixes
pre-commit-ci[bot] 6a8abba
Merge branch 'master' into type-elec-struct
DanielYang59 db89e19
Merge branch 'master' into type-elec-struct
DanielYang59 217144a
Merge branch 'master' into type-elec-struct
DanielYang59 84b7313
Merge branch 'master' into type-elec-struct
DanielYang59 480699b
Merge branch 'master' into type-elec-struct
DanielYang59 662f653
Merge branch 'master' into type-elec-struct
DanielYang59 3e59252
Merge branch 'master' into type-elec-struct
DanielYang59 03c0612
Merge branch 'master' into type-elec-struct
DanielYang59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit unclear to me what is
translation
? Is it a 3D vector?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same wording is used as in Lobster. It describes the unit cell in which the atom is in. [0 0 0] is the normal cell, but the atom might be translated to the neighboring cell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying! I just searched the wrong documentation ;) I searched
Lobster_FAQ_5.0.0
instead ofLobster_Users_Guide_5.0.0
.Update: clarified in 0e75e0d