Skip to content
Snippets Groups Projects
Commit 28f68519 authored by Nils Brüggemann's avatar Nils Brüggemann
Browse files

pyicon/pyicon_tb.py: Fixed bug in time averging due to new snapshot feature.

parent 722d30fa
No related branches found
No related tags found
No related merge requests found
......@@ -699,6 +699,9 @@ def time_average(IcD, var, t1='none', t2='none', it_ave=[], iz='all', always_use
# --- determine averaging interval
it_ave = np.where( (IcD.times>=t1) & (IcD.times<=t2) )[0]
else:
t1 = IcD.times[it_ave[0]]
t2 = IcD.times[it_ave[-1]]
if it_ave.size==0:
raise ValueError(f'::: Could not find any time steps in interval t1={t1} and t2={t2}! :::')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment