Coder Social home page Coder Social logo

earlywarningsignals's People

Contributors

bregje14 avatar dependabot[bot] avatar elsweinans avatar ingridleemput avatar muhusmanmirza avatar pabrod avatar

Watchers

 avatar  avatar

earlywarningsignals's Issues

Unit testing with floats (assert almost equal)

It is advisable to not compare floats directly as, for instance:

f1 = 0.123456
f2 = 0.1234567

# Assert equal
assert(f1 == f2)

>>> FAIL

It is safer to define a numerical tolerance:

f1 = 0.123456
f2 = 0.1234567
tol = 1e-4

# Assert almost equal
assert(f1 == pytest.approx(f2, tol))

>>> SUCCESS

Our names and emails in setup.py

The file setup.py should contain information about the author(s) of the code. Right now, it doesn't.

Suggested action

Add at least one email and one name in the file. The url is also wrong, update it to the current repository.

test_EWS() failing

In order to try the continuous integration systems, I needed to have all tests in good shape.

One of them was failing, so I killed it in commit 5da80e3

Suggested actions

  1. Revert the commit
  2. Fix the test / the function

test_EWS() is failing

test_EWS() is failing since, at least, commit b8d5f11

Strangely enough, the tests work fine when running locally.

To add even more mystery, Travis also failed after re-running the successful commit d6216ff

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.