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

Fix NaN's #27

Merged
merged 7 commits into from
Jul 25, 2023
Merged

Fix NaN's #27

merged 7 commits into from
Jul 25, 2023

Conversation

marvinfriede
Copy link
Member

  • rename typing to _typing (to avoid shadowed imports)
  • fix triples mask (now masks out everything with at least two identical indices)
  • add more masks to avoid NaN's for single precision (caused by exponentiation of already large numbers)

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #27 (dd85f7d) into main (03270b5) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   98.58%   98.61%   +0.03%     
==========================================
  Files          18       18              
  Lines         354      362       +8     
  Branches       41       42       +1     
==========================================
+ Hits          349      357       +8     
  Misses          4        4              
  Partials        1        1              
Files Changed Coverage Δ
src/tad_dftd3/_typing.py 100.00% <ø> (ø)
src/tad_dftd3/__init__.py 100.00% <100.00%> (ø)
src/tad_dftd3/damping/atm.py 100.00% <100.00%> (ø)
src/tad_dftd3/damping/rational.py 100.00% <100.00%> (ø)
src/tad_dftd3/data.py 100.00% <100.00%> (ø)
src/tad_dftd3/disp.py 100.00% <100.00%> (ø)
src/tad_dftd3/model.py 100.00% <100.00%> (ø)
src/tad_dftd3/ncoord.py 100.00% <100.00%> (ø)
src/tad_dftd3/reference.py 91.22% <100.00%> (ø)
src/tad_dftd3/util/distance.py 100.00% <100.00%> (ø)
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

tests/utils.py Dismissed Show dismissed Hide dismissed
tests/utils.py Dismissed Show dismissed Hide dismissed
@marvinfriede marvinfriede merged commit f9c585e into main Jul 25, 2023
17 checks passed
@marvinfriede marvinfriede deleted the bug-fixes branch July 25, 2023 11:34
marvinfriede added a commit to grimme-lab/dxtb that referenced this pull request Jul 26, 2023
Reverts #138

- breaks tests due to adding the extra sample to the whole sample list
- problem stems from external dependency `tad_dftd3` and is fixed in
dftd3/tad-dftd3#27
- fixed with `tad_dftd3` 0.1.4 (pinned)
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.

1 participant