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

refactor configurations #103

Merged
merged 8 commits into from
Dec 22, 2022
Merged

Conversation

wanghan-iapcm
Copy link

@wanghan-iapcm wanghan-iapcm commented Dec 21, 2022

  • new module conf is provided.
  • create abstract base class conf.ConfGenerator
  • all the configuration definitions are derived from the conf.ConfGenerator
  • examples of conf.AlloyConfGenerator and conf.FileConfGenerator are provided. The former generate alloy configurations, and the latter generates confs from files.

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Base: 71.81% // Head: 80.94% // Increases project coverage by +9.12% 🎉

Coverage data is based on head (fe3265d) compared to base (db4ea65).
Patch coverage: 94.39% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   71.81%   80.94%   +9.12%     
==========================================
  Files          65       68       +3     
  Lines        2743     2829      +86     
==========================================
+ Hits         1970     2290     +320     
+ Misses        773      539     -234     
Impacted Files Coverage Δ
dpgen2/conf/unit_cells.py 99.15% <ø> (ø)
dpgen2/entrypoint/common.py 56.09% <ø> (+36.58%) ⬆️
dpgen2/utils/__init__.py 100.00% <ø> (ø)
dpgen2/entrypoint/submit.py 17.11% <33.33%> (+17.11%) ⬆️
dpgen2/conf/conf_generator.py 93.75% <93.75%> (ø)
dpgen2/conf/__init__.py 100.00% <100.00%> (ø)
dpgen2/conf/alloy_conf.py 86.79% <100.00%> (ø)
dpgen2/conf/file_conf.py 100.00% <100.00%> (ø)
dpgen2/entrypoint/args.py 90.43% <100.00%> (+68.93%) ⬆️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm merged commit ea66892 into deepmodeling:master Dec 22, 2022
@wanghan-iapcm wanghan-iapcm deleted the refact-conf branch December 22, 2022 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants