Giter Club home page Giter Club logo

hazma's People

Contributors

adam-coogan avatar loganamorrison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hazma's Issues

scikit-image no longer supports python < 3.6 / write our own contour-finding algorithm

I'm getting build errors on python 3.5 when the system tries to install scikit-image. I get the following:

Running scikit-image-0.16.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mn54hdhq/scikit-image-0.16.2/egg-dist-tmp-k530fmby
Python 3.5.6 detected.

scikit-image 0.16+ supports only Python 3.6 and above.

from TravisCI. I think we are only using scikit-image for contour-finding. Either we should remove support for python < 3.6 or write our own contour-finding algorithm. The latter isn't too difficult. The Marching Squares algorithm (https://en.wikipedia.org/wiki/Marching_squares )
is fairly straight-forward. We'd just want to make achieve similar performance as scikit-image.

Change tests comparing floats

According to these docs, the assertAlmostEqual(a, b) function, which essentially all of our tests use, checks round(a-b, 7) == 0. This is the wrong thing to do since we want relative errors. For example,

round(1e-20 - 5e-21, 5) == 0
>>> True

We should instead switch over to something like numpy.testing.assert_allclose(), which looks at relative errors.

Move tutorials to new repo and remove manual

I think it would be better to isolate the Hazma code and tutorials into separate repositories. It seems like it would be nice to have a standalone HazmaTutorials repository which contains all Jupyter notebooks (similar to DifferentialEquations.jl and its corresponding DiffEqTutorials.jl repository.)

Also, it doesn't seem like we need the manual. I think the paper + docs should be good enough. @adam-coogan, what do you think?

rambo.generate_energy_histograms: energy less than particle mass

rambo.generate_energy_histograms is returning energies less than the particles masses. For example, given a final state of ['muon', 'muon', 'charged_kaon'], a muon energy of 93.3445621755 is produced and kaon energies of 77.6570608521, 176.525412004, ect. are produced.

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.