Skip to content

Commit

Permalink
rename some variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
r.subaih committed Mar 17, 2024
1 parent 18f0cb6 commit e7d6255
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebooks/side_view_experiments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@
"metadata": {},
"source": [
"retrieve the following attributes required for the transformation:\n",
"- ```min```: min boundary of the straight area (measurement area) (if applicable).\n",
"- ```max```: max boundary of the straight area (measurement area) (if applicable).\n",
"- ```min_bound```: min boundary of the straight area (measurement area) (if applicable).\n",
"- ```max_bound```: max boundary of the straight area (measurement area) (if applicable).\n",
"- ```unit```: 100 if data are in cm. Otherwise 1."
]
},
Expand All @@ -227,8 +227,8 @@
"metadata": {},
"outputs": [],
"source": [
"min = e.Min\n",
"max = e.Max\n",
"min_bound = e.Min\n",
"max_bound = e.Max\n",
"unit = e.unit"
]
},
Expand Down Expand Up @@ -256,7 +256,7 @@
" data_traj_tranformed = data_traj_raw.copy()\n",
" data_traj_tranformed[[\"x(m)\",\"y(m)\"]]=pd.DataFrame(x_y_transformed, columns=[\"x(m)\",\"y(m)\"])\n",
"\n",
" if (min is not None) and (max is not None): # data inside measurement area (unique for each experiment)\n",
" if (min_bound is not None) and (max_bound is not None): # data inside measurement area (unique for each experiment)\n",
" data_traj_tranformed = data_traj_tranformed[((data_traj_tranformed['x(m)'] / unit) >= min) & ((data_traj_tranformed['y(m)'] / unit) <= max)]\n",
"\n",
" dict_transformation_additional[key] = data_traj_tranformed\n",
Expand Down

0 comments on commit e7d6255

Please sign in to comment.