Skip to content

Instantly share code, notes, and snippets.

View alusiani's full-sized avatar

Alberto Lusiani alusiani

  • Italy
View GitHub Profile
@alusiani
alusiani / rminuit2_expr_exam1.ipynb
Created February 2, 2018 18:15
Fit example with rminuit2_expr
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
Date,Country,Confirmed,Recovered,Deaths
2020-01-22,Afghanistan,0,0,0
2020-01-22,Albania,0,0,0
2020-01-22,Algeria,0,0,0
2020-01-22,Andorra,0,0,0
2020-01-22,Angola,0,0,0
2020-01-22,Antigua and Barbuda,0,0,0
2020-01-22,Argentina,0,0,0
2020-01-22,Armenia,0,0,0
2020-01-22,Australia,0,0,0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alusiani
alusiani / julia-plots-savefig-svg.ipynb
Last active August 7, 2020 20:33
Julia Plots savefig displays plot in Jupyterlab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

question:

Using the uncertainties package in Python, can I list from which variables a variable depends on?

reply:

Thought for 158 seconds > The user is asking about the `uncertainties` package in Python and whether it can track variable dependencies. Let me think about this more carefully. >

USER

can I list the variables from which a variable depende in the context of the Python uncertainties packages ufloats?

ASSISTANT

In the uncertainties package for Python, each ufloat object represents a value with associated uncertainties and can track which variables it depends on. You can access these dependencies through the nominal_value, std_dev, and depends attributes of the ufloat objects.

Here's how you can list the variables from which a particular ufloat depends:

from uncertainties import ufloat