Skip to content

Commit

Permalink
add suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
nienketimmermans committed Jan 14, 2025
1 parent 1765cc1 commit 85483db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/tutorials/tremor_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@
"from pathlib import Path\n",
"from paradigma.util import load_tsdf_dataframe\n",
"\n",
"# Set the path to where the prepared data is saved (in TSDF format) and load the data\n",
"path_to_data = Path('../../tests/data')\n",
"path_to_prepared_data = path_to_data / '1.prepared_data' / 'imu'\n",
"df_data, metadata_time, metadata_values = load_tsdf_dataframe(path_to_prepared_data, prefix='IMU') # load the data (saved in TSDF format)\n",
"df_data, metadata_time, metadata_values = load_tsdf_dataframe(path_to_prepared_data, prefix='IMU') \n",
"\n",
"df_data # print the dataframe"
"df_data"
]
},
{
Expand Down Expand Up @@ -961,6 +962,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Besides the modal tremor power the following tremor power aggregates are derived: ['median', '90p'].\n",
"{'aggregated_tremor_measures': {'90p_tremor_power': 1.796145868028196,\n",
" 'median_tremor_power': 0.5451560244011688,\n",
" 'modal_tremor_power': 0.52,\n",
Expand All @@ -975,6 +977,8 @@
"from paradigma.tremor.tremor_analysis import aggregate_tremor\n",
"\n",
"config = TremorAggregationConfig()\n",
"print(f'Besides the modal tremor power the following tremor power aggregates are derived: {config.aggregates_tremor_power}.')\n",
"\n",
"d_tremor_aggregates = aggregate_tremor(df_predictions, config)\n",
"\n",
"pprint.pprint(d_tremor_aggregates)"
Expand Down

0 comments on commit 85483db

Please sign in to comment.