Skip to content

Commit

Permalink
Made the path more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneLuijten committed Apr 26, 2024
1 parent afe07ff commit 5e5b589
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions S2_IMU/S2_IMU.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"In the cell below, a basic script that prints the outputs from `ICM20948.py` is provided.\n",
"\n",
"1. Open a Python editor on the RP to start a new Python3 script\n",
"2. **Save the script in a new folder: `Documents/Lab2/IMU_test.py`**\n",
"2. **Save the script in a new folder: `home/pbl/Documents/Lab2/IMU_test.py`**\n",
"3. To demonstrate that the device functions, we will start with an example code that read the values from `ICM20948.py`. Copy the code below to your script and run it. You can stop the script with typing `Ctrl+C` in the Shell window. "
]
},
Expand Down Expand Up @@ -151,7 +151,7 @@
"source": [
"## 4. Create an Interface to Visualize the IMU's data <a class=\"anchor\" id=\"Ch4\"></a>\n",
"\n",
"Because it is hard to check whether the numbers that are printed by `ICM20948.py` make sense, we will create a GUI that visualizes (plots) the IMU's data in realtime. **Create a new script: `Documents/Lab2/IMU_animation.py`**. To start, you can copy the contents of the script `IMU_test.py` to this new script and add the interface to it. \n",
"Because it is hard to check whether the numbers that are printed by `ICM20948.py` make sense, we will create a GUI that visualizes (plots) the IMU's data in realtime. **Create a new script: `home/pbl/Documents/Lab2/IMU_animation.py`**. To start, you can copy the contents of the script `IMU_test.py` to this new script and add the interface to it. \n",
"\n",
"> 🏆 **Challenge `S2.4`**: Create an interface that visualizes the running data plot while capturing. You can use the `IMU_test.py` script that is provided as a start. \n",
">\n",
Expand Down Expand Up @@ -205,7 +205,7 @@
"\n",
"In the previous section, you extracted and plotted live IMU data using `matplotlib`. However, we cannot analyse data if this isn't saved somewhere.\n",
"\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `Documents/Lab2/IMU_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `home/pbl/Documents/Lab2/IMU_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"\n",
"> 🏆 **Challenge `S2.5.2a`**: Go through the [X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb) and [X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb) \"eXtra Content\" materials.\n",
">\n",
Expand All @@ -214,7 +214,7 @@
"> - Combine both techniques to write your data to a *timestamped* CSV file\n",
">\n",
">\n",
"> 🏆 **Challenge `S2.5.2b`**: **Create a new script**: `Documents/Lab2/IMU_logging_data.py`. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
"> 🏆 **Challenge `S2.5.2b`**: **Create a new script: `home/pbl/Documents/Lab2/IMU_logging_data.py`**. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
">\n",
"> - Modify the code you have written up to now to generate a timestamped CSV filename (e.g. `$yourpath$/output_$timestamp$.csv`). Create a list (or other data type) and append a row of IMU data each time new datapoints are generated by the loop. \n",
"> - Write the entire data to CSV once the program stops. \n",
Expand Down
8 changes: 4 additions & 4 deletions S3_ForcePlate/S3_ForcePlate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
"source": [
"## 4. Create an Animated Plot to Visualize the Signals <a class=\"anchor\" id=\"Ch4\"></a>\n",
"\n",
"Since it is hard to check whether the numbers that are printed make sense, we will create an interface that plots the outputted numbers. Let's create a simple interface with which we can see a running data plot while capturing. **Create a new script: `Documents/Lab3/FP_animation.py`.** To start, you can copy the contents of the script `simple_read_test.py` to this new script and add the interface to it. \n",
"Since it is hard to check whether the numbers that are printed make sense, we will create an interface that plots the outputted numbers. Let's create a simple interface with which we can see a running data plot while capturing. **Create a new script: `home/pbl/Documents/Lab3/FP_animation.py`.** To start, you can copy the contents of the script `simple_read_test.py` to this new script and add the interface to it. \n",
"\n",
"> 🏆 **Challenge `S3.4`**: Create an animated plot that visualizes your force plate signals.\n",
">\n",
Expand Down Expand Up @@ -370,16 +370,16 @@
"\n",
"In the previous sections you have extracted and plotted live force plate data using the libraries. However, we cannot analyse data if this isn't saved somewhere.\n",
"\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `Documents/Lab3/FP_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `home/pbl/Documents/Lab3/FP_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"\n",
"> 🏆 **Challenge `S3.6a`**: Go through the [X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb) and [X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb) \"eXtra Content\" materials.\n",
">\n",
"> - After going through [X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb), you should know how to write CSV files\n",
"> - After going through [X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb), you should know how to generate timestamped file names\n",
"> - Combine both techniques to write your data to a *timestamped* CSV file\n",
">\n",
"> 🏆 **Challenge `S3.6b`**: **Create a new script**:\n",
"`Documents/Lab3/FP_logging_data.py`. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
"> 🏆 **Challenge `S3.6b`**: **Create a new script:\n",
"`home/pbl/Documents/Lab3/FP_logging_data.py`**. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
"> \n",
"> - Modify the code you have written up to now to generate a timestamped CSV filename (e.g. `$yourpath$/output_$timestamp$.csv`). Create a list (or other data type) and append a row of force plate data each time new datapoints are generated by the loop. \n",
"> - Write the entire data to CSV once the program stops. \n",
Expand Down
10 changes: 5 additions & 5 deletions S4_EMG/S4_EMG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"source": [
"## 3. Control the EMG with Python code <a id=\"Ch3\"></a>\n",
"\n",
"1. Open a Python editor on the RP to start a new Python3 script\n",
"2. **Save the script in a new folder: `Documents/Lab4/EMG_test.py`**\n",
"1. Open a Python editor on the RP to start a new Python script\n",
"2. **Save the script in a new folder: `home/pbl/Documents/Lab4/EMG_test.py`**\n",
"3. To demonstrate that the device functions, we will start with a simple example that reads the ADC channel values at a single instance."
]
},
Expand Down Expand Up @@ -213,7 +213,7 @@
"source": [
"## 4. Create an Interface to visualize the EMG data <a id=\"Ch4\"></a>\n",
"\n",
"Now that we have seen the first outputs of the device, let's create a simple interface with which we can start and stop the measurement and see a running data plot while capturing. **Create a new script: `Documents/Lab4/EMG_animation.py`.** To start, you can copy the contents of the script `EMG_test.py` to this new script and add the interface to it. \n",
"Now that we have seen the first outputs of the device, let's create a simple interface with which we can start and stop the measurement and see a running data plot while capturing. **Create a new script: `home/pbl/Documents/Lab4/EMG_animation.py`.** To start, you can copy the contents of the script `EMG_test.py` to this new script and add the interface to it. \n",
"\n",
"> 🏆 **Challenge `S4.4`**: Create an interface that visualizes the running data plot while capturing.\n",
">\n",
Expand Down Expand Up @@ -278,7 +278,7 @@
"\n",
"In the previous sections you have extracted and plotted live EMG data using the ADS1115 library and `matplotlib`. However, we cannot analyse data if this isn't saved somewhere.\n",
"\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `Documents/Lab4/EMG_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"To do this, you are going to need to know how to generate unique timestamped filenames ([X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb)) and how to write to CSV files ([X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb)). **You will then produce a new python script, `home/pbl/Documents/Lab4/EMG_logging_data.py`, that writes your output values (and a timestamp) to a CSV file.**\n",
"\n",
"> 🏆 **Challenge `S4.5.2a`**: Go through the [X1](../X1_WritingCSVFiles/X1_WritingCSVFiles.ipynb) and [X2](../X2_GeneratingTimestampedFilenames/X2_GeneratingTimestampedFilenames.ipynb) \"eXtra Content\" materials.\n",
">\n",
Expand All @@ -287,7 +287,7 @@
"> - Combine both techniques to write your data to a *timestamped* CSV file\n",
">\n",
">\n",
"> 🏆 **Challenge `S2.5.2b`**: **Create a new script**: `Documents/Lab4/EMG_logging_data.py`. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
"> 🏆 **Challenge `S2.5.2b`**: **Create a new script: `home/pbl/Documents/Lab4/EMG_logging_data.py`**. This script should create a timestamped CSV file containing the raw data. We do this separately from the animation script, because the animation slows our script down. \n",
">\n",
"> - Modify the code you have written up to now to generate a timestamped CSV filename (e.g. `$yourpath$/output_$timestamp$.csv`). Create a list (or other data type) and append a row of EMG data each time new datapoints are generated by the loop. \n",
"> - Write the entire data to CSV once the program stops. \n",
Expand Down

0 comments on commit 5e5b589

Please sign in to comment.