-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
refactor(data preprocess): remove the cut off options from info.json #200
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1861c4e
refactor(data preprocess): remove the cut off options from info.json …
QG-phy 3a1e1ef
update LMDB info.json. not need anymore.
QG-phy 7eb57e4
refactor(default_dataset): refactor the _TrajData for ase data.
QG-phy 3305d33
add print logo in main and format some of the logger.info
QG-phy 6563dda
update argcheck collect_cutoffs. add new function with get_cutoffs…
QG-phy 41a67a6
Fix(get_cutoffs_from_model_options) : fix rcut in powerlaw and varTa…
QG-phy 9b12282
update band post process.
QG-phy 2171b3f
update test
QG-phy 1b66822
update test
QG-phy 264c0a9
update build and get_cutoffs_from_model_options to support the rmax t…
QG-phy 3943551
refactor(build dataset): change build_dataset from function to a clas…
QG-phy 2470c9f
add checkcutoff in dataset builder.
QG-phy 67b4261
update AtomicData_options to make it compatible with older versions
QG-phy 8fa5b78
Update argcheck.py
floatingCatty 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
from dptb.entrypoints.main import main | ||
from dptb.entrypoints.main import main as entry_main | ||
import logging | ||
import pyfiglet | ||
from dptb import __version__ | ||
|
||
logging.basicConfig(level=logging.INFO, format='%(message)s') | ||
log = logging.getLogger(__name__) | ||
|
||
def print_logo(): | ||
f = pyfiglet.Figlet(font='dos_rebel') # 您可以选择您喜欢的字体 | ||
logo = f.renderText("DeePTB") | ||
log.info(" ") | ||
log.info(" ") | ||
log.info("#"*81) | ||
log.info("#" + " "*79 + "#") | ||
log.info("#" + " "*79 + "#") | ||
for line in logo.split('\n'): | ||
if line.strip(): # 避免记录空行 | ||
log.info('# '+line+ ' #') | ||
log.info("#" + " "*79 + "#") | ||
version_info = f"Version: {__version__}" | ||
padding = (79 - len(version_info)) // 2 | ||
nspace = 79-padding | ||
format_str = "#" + "{}"+"{:<"+f"{nspace}" + "}"+ "#" | ||
log.info(format_str.format(" "*padding, version_info)) | ||
log.info("#" + " "*79 + "#") | ||
log.info("#"*81) | ||
log.info(" ") | ||
log.info(" ") | ||
def main() -> None: | ||
""" | ||
The main entry point for the dptb package. | ||
""" | ||
print_logo() | ||
entry_main() | ||
|
||
if __name__ == '__main__': | ||
main() | ||
#print_logo() | ||
main() |
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.
这边er_max和oer_max不要同步改下嘛?