FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
T.Y. Cho's avatar
T.Y. Cho authored
2024update

See merge request !3
f4674539
History
Name Last commit Last update
data
sourcecode
analyse.ipynb
readme.md

Part IIA Experiment - 3A6 - Heat Transfer over CPU in a Raspberry Pi

This Git repository provides you with all basic codes aimed to assist you in completing 3A6 coursework.

Download the code

You can download the source code from this repository. If you are not too familiar with the path and command line, we strongly recommend you work within the downloaded directory. You can enter the working directory in the command line using

cd path/

where path/ is the directory containing the .ipynb file.

Copying data files

The data files saved to your USB during the lab session should be copy to the data folder in your working directory.

Installation

You can run the Notebook on your own computer following the instructions below OR work online by uploading it to Google Colab.

Initialising virtual environment

We strongly encourage you to use Python 3 and create a virtual environment at path/to/venv (you can choose your own path). This ensures the modules used by the other projects do not interfere.

python3 -m venv path/to/venv

if calling python3 reports an error, make sure you installed Python 3 (sometimes it can be called by python, but note that it should not be confused with Python 2)

Activating the virtual environment

You must activate the virtual environment before it can work. Remember to replace path/to/venv

Windows:

path/to/venv\Scripts\activate

Linux/macOS

source path/to/venv/bin/activate

Install required packages

Use the package manager pip to install numpy.

pip install numpy matplotlib pandas notebook

Usage

If you are using Colab, you might receive an error relating to ipympl, this can be installed by running the following in your notebook

!pip install ipympl

If you are running notebook locally, start Jupyter Notebook by using the command and setting the path to our working directory path/

jupyter notebook --notebook-dir 'path/'

Jupyter Notebook should then automatically open in your browser and you should be able to navigate from here.

Contributing

We welcome any bug report and contribution to the code is also encouraged. Please email Schoen Cho or Prof. Simone Hochgreb if there is any problem.