Fixed issue with animation

This commit is contained in:
Edgar P. Burkhart 2022-01-23 10:31:18 +01:00
parent 6f938c5b85
commit 3eb45ecc47
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 5 additions and 6 deletions

View file

@ -44,7 +44,7 @@ L0 = float(config['main']['L0'])
L1 = float(config['main']['L1'])
direction = float(config['main']['dir'])
artha = artha.append(pd.DataFrame([
artha = pd.concat((artha, pd.DataFrame([
{
'lat': artha.lat.at[0] \
+ np.cos(direction*np.pi/180) * L0/earth_radius * 180/np.pi,
@ -59,7 +59,7 @@ artha = artha.append(pd.DataFrame([
- np.sin(direction*np.pi/180) * L1/earth_radius * 180/np.pi \
/ np.cos(artha.lat.at[0] * np.pi/180),
},
], index=[-1, 1]))
], index=[-1, 1])))
# --- Interpolation
log.info('Interpolating data')

View file

@ -1,7 +1,6 @@
from pathlib import Path
import re
from multiprocessing.pool import ThreadPool
from pprint import pp
from time import time
import logging
import configparser
@ -93,11 +92,11 @@ def animate(config_path):
),
*[
ax.fill(
bloc.index,
bloc,
a.index.values,
a.values,
color='k',
zorder=12
) for bloc in blocs.values()
) for a in blocs.values()
]
]