Skip to content

Raise error when from_deepmd_npy_mixed with not-a-directory para.#432

Open
iProzd wants to merge 2 commits intodeepmodeling:masterfrom
iProzd:fix_empty_dir
Open

Raise error when from_deepmd_npy_mixed with not-a-directory para.#432
iProzd wants to merge 2 commits intodeepmodeling:masterfrom
iProzd:fix_empty_dir

Conversation

@iProzd
Copy link
Copy Markdown
Member

@iProzd iProzd commented Mar 12, 2023

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.53%. Comparing base (f8c5d4a) to head (91deabf).
⚠️ Report is 334 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #432      +/-   ##
==========================================
+ Coverage   82.51%   82.53%   +0.02%     
==========================================
  Files          68       68              
  Lines        6198     6206       +8     
==========================================
+ Hits         5114     5122       +8     
  Misses       1084     1084              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


def from_multi_systems(self, directory, **kwargs):
sys_dir = []
assert os.path.isdir(directory), f"{directory} is not a directory!"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please raise FileNotFoundError. One has not chance of catching the error with assertion!
Plz also add a UT for it.

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.

2 participants