Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VirtFlow_GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Weissenbrunner
VirtFlow_GUI
Commits
462d033e
Commit
462d033e
authored
2 years ago
by
Andreas Weissenbrunner
Browse files
Options
Downloads
Patches
Plain Diff
made the uncertainty calculation work again
parent
0917e3e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI_Elbow.py
+4
-3
4 additions, 3 deletions
GUI_Elbow.py
with
4 additions
and
3 deletions
GUI_Elbow.py
+
4
−
3
View file @
462d033e
...
@@ -623,10 +623,9 @@ class mainPanel(wx.Panel):
...
@@ -623,10 +623,9 @@ class mainPanel(wx.Panel):
def
OnClicked_btn_uncertainty
(
self
,
e
):
def
OnClicked_btn_uncertainty
(
self
,
e
):
# calculate the uncertainty for the flow meter
# calculate the uncertainty for the flow meter
if
self
.
pathint
.
any
():
if
self
.
pathint
.
any
():
self
.
fm_mean
=
np
.
zeros_like
(
self
.
pathint
)
self
.
fm_std
=
np
.
zeros_like
(
self
.
pathint
)
if
flow
.
case
==
"
SingleElbow
"
:
if
flow
.
case
==
"
SingleElbow
"
:
self
.
fm_mean
=
np
.
zeros
((
len
(
flow
.
Rk
),
len
(
flow
.
dist
),
len
(
flow
.
phi
)))
self
.
fm_std
=
np
.
zeros
((
len
(
flow
.
Rk
),
len
(
flow
.
dist
),
len
(
flow
.
phi
)))
for
i
,
rc
in
enumerate
(
flow
.
Rk
):
for
i
,
rc
in
enumerate
(
flow
.
Rk
):
for
j
,
dist
in
enumerate
(
flow
.
dist
):
for
j
,
dist
in
enumerate
(
flow
.
dist
):
for
k
,
phi
in
enumerate
(
flow
.
phi
[:,
0
]):
for
k
,
phi
in
enumerate
(
flow
.
phi
[:,
0
]):
...
@@ -638,6 +637,8 @@ class mainPanel(wx.Panel):
...
@@ -638,6 +637,8 @@ class mainPanel(wx.Panel):
self
.
regint_mean
=
interpol
.
RegularGridInterpolator
((
flow
.
Rk
,
flow
.
dist
,
flow
.
phi
[:,
0
]),
self
.
fm_mean
,
bounds_error
=
False
,
fill_value
=
None
)
self
.
regint_mean
=
interpol
.
RegularGridInterpolator
((
flow
.
Rk
,
flow
.
dist
,
flow
.
phi
[:,
0
]),
self
.
fm_mean
,
bounds_error
=
False
,
fill_value
=
None
)
self
.
regint_std
=
interpol
.
RegularGridInterpolator
((
flow
.
Rk
,
flow
.
dist
,
flow
.
phi
[:,
0
]),
self
.
fm_std
,
bounds_error
=
False
,
fill_value
=
None
)
self
.
regint_std
=
interpol
.
RegularGridInterpolator
((
flow
.
Rk
,
flow
.
dist
,
flow
.
phi
[:,
0
]),
self
.
fm_std
,
bounds_error
=
False
,
fill_value
=
None
)
else
:
else
:
self
.
fm_mean
=
np
.
zeros
((
len
(
flow
.
Rk
),
len
(
flow
.
dl
),
len
(
flow
.
dist
),
len
(
flow
.
phi
)))
self
.
fm_std
=
np
.
zeros
((
len
(
flow
.
Rk
),
len
(
flow
.
dl
),
len
(
flow
.
dist
),
len
(
flow
.
phi
)))
for
i
,
rc
in
enumerate
(
flow
.
Rk
):
for
i
,
rc
in
enumerate
(
flow
.
Rk
):
for
j
,
dl
in
enumerate
(
flow
.
dl
):
for
j
,
dl
in
enumerate
(
flow
.
dl
):
for
k
,
dist
in
enumerate
(
flow
.
dist
):
for
k
,
dist
in
enumerate
(
flow
.
dist
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment