Git Product home page Git Product logo

Comments (16)

chcltchunk avatar chcltchunk commented on July 30, 2024

@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.

jameskermode avatar jameskermode commented on July 30, 2024

Thanks for the fast response!

from matscipy.

pastewka avatar pastewka commented on July 30, 2024

@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.

chcltchunk avatar chcltchunk commented on July 30, 2024

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.

pastewka avatar pastewka commented on July 30, 2024

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

Thanks both!

from matscipy.

pastewka avatar pastewka commented on July 30, 2024

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.

jameskermode avatar jameskermode commented on July 30, 2024

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.

pastewka avatar pastewka commented on July 30, 2024

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

Still working fine for libAtoms/QUIP repo, so I think it’s a configuration issue

from matscipy.

pastewka avatar pastewka commented on July 30, 2024

I've fixed all lingering issues, @jameskermode can you confirm that the ring statistics segfault has disappeared?

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

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.

jameskermode avatar jameskermode commented on July 30, 2024

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.

pastewka avatar pastewka commented on July 30, 2024

Okay, thanks. It was unclear to me if all those tests actually ran before. I think only a subset may have run.

from matscipy.

jameskermode avatar jameskermode commented on July 30, 2024

Some of them depend on atomistica.

from matscipy.

pastewka avatar pastewka commented on July 30, 2024

Ahh, okay. Enabling those in CI is also something that I should look at.

from matscipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.