Fixed issue with animation
This commit is contained in:
parent
6f938c5b85
commit
3eb45ecc47
2 changed files with 5 additions and 6 deletions
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
]
|
||||
]
|
||||
|
||||
|
|
Reference in a new issue