The lib is still under development and is not fully usable at this time
Library to process, format, and analyze BlueDrop accelerometer data. The main functions and classes are in the lib folder. An example is provided using the library for the analysis of a folder of BlueDrop data.
The purpose of these instructions are to set up BlueDrop Analysis on your own computer. These instructions are subject to change in the future. The goal for this repo is to change it to be a python package hosted through conda
.
The necessary downloads to use this code are:
- An IDE that can run jupyter notebooks (VS Code is what I recommend, VS Code Download link)
- git, link
- Anaconda (or miniconda), miniconda link
- Clone the repo to a local folder using the following command in your terminal:
git clone https://github.com/UF-Coastal-Geotech/BlueDrop_Analysis_Lib.git
-
Use VS Code to open the newly cloned
BlueDrop_Analysis_Lib
folder -
Using the side menu view the
Examples
folder and open theExample_PFFP_walkthrough.ipynb
file. This is a jupyter notebook and walks through some of the common steps and functions that are used to process PFFP data files. -
On
Windows
open theAnaconda Prompt
or onLinux
open a terminal of your choice that has conda added to it.
The purpose of the next couple of steps are to use conda
and the environment.yml
file to install all the necessary packages and modules to run the all the functions in the library.
-
Using the terminal change your working directory to the
BlueDrop_Analysis_Lib
folder. -
The following is the command is the command to create the conda environment
If on windows run the following command in the
conda
terminal:conda env create --file environment_win.yml --name PFFP_Analysis
If on linux run the following command:
conda env create --file environment_linux.yml
Installing the packages may take a few minutes.
-
Activate the
PFFP_Analysis
conda
environment.- The easiest way to do this in VS Code is to try running a cell in
Example_PFFP_walkthrough.ipynb
. VS Code should ask you which kernel you want to use. ChoosePython Environments
>PFFP_Analysis
- The easiest way to do this in VS Code is to try running a cell in
-
Once the Python Kernel is selected and the cells in
Example_PFFP_walkthrough.ipynb
are running you are good to go.