Skip to content
Snippets Groups Projects
Commit 2a90f15b authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fixes iter0 in rare condition

parent 9f65ce00
No related branches found
No related tags found
1 merge request!105Fix/nse
Pipeline #201081 passed
...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment