Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
TurTLE
TurTLE
Commits
2a90f15b
Commit
2a90f15b
authored
1 year ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
fixes iter0 in rare condition
parent
9f65ce00
No related branches found
No related tags found
1 merge request
!105
Fix/nse
Pipeline
#201081
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TurTLE/DNS_statistics.py
+1
-1
1 addition, 1 deletion
TurTLE/DNS_statistics.py
with
1 addition
and
1 deletion
TurTLE/DNS_statistics.py
+
1
−
1
View file @
2a90f15b
...
@@ -74,7 +74,7 @@ def compute_statistics(
...
@@ -74,7 +74,7 @@ def compute_statistics(
with
self
.
get_data_file
()
as
data_file
:
with
self
.
get_data_file
()
as
data_file
:
if
'
moments
'
not
in
data_file
[
'
statistics
'
].
keys
():
if
'
moments
'
not
in
data_file
[
'
statistics
'
].
keys
():
return
None
return
None
iter0
=
min
((
data_file
[
'
statistics/moments/velocity
'
].
shape
[
0
]
*
iter0
=
min
((
(
data_file
[
'
statistics/moments/velocity
'
].
shape
[
0
]
-
1
)
*
self
.
parameters
[
'
niter_stat
'
]),
self
.
parameters
[
'
niter_stat
'
]),
iter0
)
iter0
)
if
type
(
iter1
)
==
type
(
None
):
if
type
(
iter1
)
==
type
(
None
):
...
...
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