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

Component Uncertainty display #27

Open
robproject opened this issue Dec 5, 2023 · 2 comments
Open

Component Uncertainty display #27

robproject opened this issue Dec 5, 2023 · 2 comments

Comments

@robproject
Copy link
Owner

robproject commented Dec 5, 2023

Component uncertainties are not being displayed correctly. Not all components are included in final calculation, and the resulting plot and table aren't confirmed to be correct. However, the final Cd is correct.

image

cd_dict:
{'cd': ['0.623+/-0.027', 1], 'd': ['3.5050+/-0.0023', 0.35552162986652913], 'd1': ['0.6180+/-0.0011', 0.04535018907744455], 'd2': ['0.2380+/-0.0008', 5.3534862585380045], 'rho': ['1000.0+/-0', 0.0003115258281705462], 'dx': ['0.183+/-0.008', 26.740414435240016], 'dt': ['0.05555500+/-0.00000006', 11.215041521551804], 'dp': ['60.1+/-0.6', 0.3121192118749329]}

cd.derivatives:
defaultdict(None, {0.618+/-0.001129: 0.04535018907744455, 0.238+/-0.000784915: -5.3534862585380045, 1000.0+/-0: 0.0003115258281705462, 1.0+/-0.0006740185457389137: 0.0005928207196212992, 0.473+/-0.004: 0.5474844807217976, 1.0+/-0.0008221344172335811: -0.3121186488901675, 1.0387+/-0.0034: -0.5497954160283239, 0.05555500219448871+/-6.374816570826417e-08: -11.215041521551804, 0.0233+/-0.001: 26.740414435240016, 3.505+/-0.002284631: 0.35552162986652913})

cd.error_components():
{0.618+/-0.001129: 5.12003634684349e-05, 0.238+/-0.000784915: 0.004202031666620358, 1000.0+/-0: 0, 1.0+/-0.0006740185457389137: 3.9957215932304436e-07, 0.473+/-0.004: 0.00218993792288719, 1.0+/-0.0008221344172335811: 0.00025660348351305056, 1.0387+/-0.0034: 0.0018693044144963012, 0.05555500219448871+/-6.374816570826417e-08: 7.149383253409475e-07, 0.0233+/-0.001: 0.026740414435240018, 3.505+/-0.002284631: 0.0008122357367635984}

@robproject
Copy link
Owner Author

Table updated to include all relevant indicators. Missing UPC is attributed to hysteresis and linearity uncertainties, unable to include as part of ufloat currently.

image

@robproject
Copy link
Owner Author

Missing UPCs are causing total value to be greater than 100%. This is because p lin and hyst are directly included after converting p ufloat values to psi, by manually modifying std property of p ufloat. Std values are unable to be changed directly. A new ufloat object must be created to include these uncertainties. Not sure how the percentages are adding to more than 1

@robproject robproject reopened this Dec 9, 2023
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

1 participant