Comments (16)
@pastewka I could reproduce the bug and I think I found the problem in first_neighbours. If the changes don't affect the triplet list and the bond order potential I will commit them soon.
from matscipy.
Thanks for the fast response!
from matscipy.
@chcltchunk Can you please fix this? Nevertheless, the ring statistics should not segfault if something stupid is passed as the argument. @chcltchunk Can you turn the current segfault into a test, i.e. simply pick whatever the current output is and paste this into a test (that will segfault). I will then debug this and turn the segfault into a proper error message.
from matscipy.
As it turned out, the segmentation fault was somehow related to the seed array being initialized with 0 instead of -1. A test that makes sense to me would check whether the resulting first neighbour list only contains reasonable numbers within the range of len(atoms) and if 0 occurs only once?
from matscipy.
from matscipy.
Thanks both!
from matscipy.
There are still tests failing. Sorry for this mess, I shouldn't have merged to pull requests. (Somehow github does not show failing Travis tests in the PR so I was under the impression that those were good.)
What I'll do today is rearrange the testing framework (I want it to work with pytest) and fix those failing tests in that process.
from matscipy.
Sounds good. I was also confused about the CI setup. Travis is still running tests on PR branches, but for some reason they don’t show up in the GitHub PR interface.
from matscipy.
from matscipy.
Still working fine for libAtoms/QUIP repo, so I think it’s a configuration issue
from matscipy.
I've fixed all lingering issues, @jameskermode can you confirm that the ring statistics segfault has disappeared?
from matscipy.
Yup, seg fault is fixed - thanks!
python setup.py test
still seems to run via unittest rather than pytest, I'll see if I can fix it. I also have some failing tests in test_crack.py
, probably due to numerical precision.
from matscipy.
python setup.py test still seems to run via unittest rather than pytest, I'll see if I can fix it.
Done in master
directly
from matscipy.
Okay, thanks. It was unclear to me if all those tests actually ran before. I think only a subset may have run.
from matscipy.
Some of them depend on atomistica.
from matscipy.
Ahh, okay. Enabling those in CI is also something that I should look at.
from matscipy.
Related Issues (20)
- Tests only run properly when `pytest` is executed in the `tests` subdirectory HOT 1
- [JOSS Review] Paper and statement of need HOT 2
- [JOSS Review] Reproducibility and functionality HOT 1
- [JOSS Review] Tests HOT 2
- [JOSS Review] Documentation HOT 2
- JOSS Review: Examples and Tutorials HOT 1
- Editable install won't run HOT 1
- Documentation appearance HOT 3
- Generalise surface reconstruction code
- Conda-forge build not working for version 0.8.0 HOT 5
- Some fenics log messages are written to stdout instead of stderr HOT 1
- Autogenerate documentation previews on pull requests in CI
- v0.8.1 and v0.9.0 releases HOT 4
- Part of the electrochemistry module does not follow coding style HOT 2
- TST: electrochemistry CLI pipe output test fails in CI ... HOT 3
- Building documentation requires Fenics HOT 4
- Interactive visualisation of atomic structures in documentation is broken HOT 12
- Clean up extra files created by running docs + tests HOT 7
- Improve performance of unittests
- Switch arm64 from Cirrus to GHA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matscipy.