mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-06-10 01:55:59 +00:00
Fixed a problem where columns were missing
This commit is contained in:
parent
967c9c70de
commit
a95252a361
File diff suppressed because it is too large
Load Diff
14
tests.ipynb
14
tests.ipynb
@ -756,6 +756,7 @@
|
||||
"\n",
|
||||
"altitudes = [318.99999999906896]\n",
|
||||
"velocities = [0]\n",
|
||||
"acc_total = [0]\n",
|
||||
"\n",
|
||||
"pitch, yaw, roll = df.at[2, 'pitch_l'] * pi / 180, df.at[2, 'yaw_l'] * pi / 180, df.at[2, 'roll_l'] * pi / 180\n",
|
||||
"decl = df.at[2, 'declination']\n",
|
||||
@ -799,6 +800,7 @@
|
||||
"\n",
|
||||
" altitudes.append(pos[0])\n",
|
||||
" velocities.append(np.sqrt(vel[0]**2 + vel[1]**2 + vel[2]**2))\n",
|
||||
" acc_total.append(np.sqrt(acc[0]**2 + acc[1]**2 + acc[2]**2))\n",
|
||||
"\n",
|
||||
"plt.plot(df['Time'], df['altitude'] * 1000, label='true')\n",
|
||||
"\n",
|
||||
@ -911,6 +913,8 @@
|
||||
"df.insert(0, 'vy_FL', np.array(vy_FL) / 1000)\n",
|
||||
"df.insert(0, 'vz_FL', np.array(vz_FL) / 1000)\n",
|
||||
"\n",
|
||||
"df.insert(0, 'acc_total', np.array(acc_total))\n",
|
||||
"\n",
|
||||
"df_new = df[[\n",
|
||||
" 'Time',\n",
|
||||
" 'Phase',\n",
|
||||
@ -934,7 +938,10 @@
|
||||
" 'OMEGA_X',\n",
|
||||
" 'OMEGA_Y',\n",
|
||||
" 'OMEGA_Z',\n",
|
||||
" 'mass_total'\n",
|
||||
" 'mass_total',\n",
|
||||
" 'flightpath_speed', \n",
|
||||
" 'acc_total', \n",
|
||||
" 'drag'\n",
|
||||
"]]\n",
|
||||
"\n",
|
||||
"descriptions = pd.DataFrame.from_dict({\n",
|
||||
@ -960,7 +967,10 @@
|
||||
" 'OMEGA_X': ['Radian / Second'],\n",
|
||||
" 'OMEGA_Y': ['Radian / Second'],\n",
|
||||
" 'OMEGA_Z': ['Radian / Second'],\n",
|
||||
" 'mass_total': ['Mega-Gram']\n",
|
||||
" 'mass_total': ['Mega-Gram'],\n",
|
||||
" 'flightpath_speed': ['Kilo-Meter / Second'], \n",
|
||||
" 'acc_total': ['Meter/Second**2'], \n",
|
||||
" 'drag': ['Kilo-Newton']\n",
|
||||
"}, dtype=str)\n",
|
||||
"\n",
|
||||
"df_new = pd.concat([descriptions, df_new], axis=0)\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user