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

Update atoms.py #205

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Update atoms.py #205

merged 1 commit into from
Jan 15, 2020

Conversation

giadefa
Copy link
Contributor

@giadefa giadefa commented Jan 15, 2020

Fix if the database file exists but it's empty.

Otherwise it crashes as it tries to access the first element which is not there.

In case that you like to accept the small change I have made the pull request.

Fix if the database exists but it's empty
@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

Merging #205 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #205   +/-   ##
=======================================
  Coverage   76.86%   76.86%           
=======================================
  Files          80       80           
  Lines        5160     5160           
=======================================
  Hits         3966     3966           
  Misses       1194     1194
Impacted Files Coverage Δ
src/schnetpack/data/atoms.py 85.27% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3487b4c...be40fee. Read the comment docs.

@mgastegger mgastegger merged commit 182c102 into atomistic-machine-learning:master Jan 15, 2020
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