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

Use cases and examples #166

Open
mocquin opened this issue Oct 23, 2022 · 3 comments
Open

Use cases and examples #166

mocquin opened this issue Oct 23, 2022 · 3 comments

Comments

@mocquin
Copy link

mocquin commented Oct 23, 2022

Is there a place I could find use-cases or in-depth examples outside of the doc ? I am trying to build a unit-test list that is inspired by real-life use of uncertainties. Maybe some known projects that uses uncertainties ?

@lebigot
Copy link
Collaborator

lebigot commented Oct 23, 2022

I am not aware of any specific example of usage, but if I remember correctly, many hundreds of projects on the web use it. I'm not yet sure how to find them, though.

@mocquin
Copy link
Author

mocquin commented Oct 24, 2022

The dependency list gives a start, although browsing through it I could not find much examples.

I started from the examples of the documentation and set up few tests here

I'd be curious to have your thoughts about it. FYI out of 30 assertions, I get 2 failures and 3 errors.

@lebigot
Copy link
Collaborator

lebigot commented Oct 25, 2022

Ah, good find! That's what I had in mind when I was mentioning "hundreds of projects" using uncertainties (actually 1,400 it seems).

I had a quick look at the tests you set up. Thanks!

I have a couple of comments:

  1. I see you measure some execution time: the timeit module is more appropriate, as it takes care of subtleties.
  2. You know that the code of uncertainties already contains quite many tests, right? They are in the test….py files. Now, they could be adapted (if needed) to a more recent Python testing module than nosetests. :)

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

No branches or pull requests

2 participants