OceanStreamIO / oceanstream

Oceanstream is a Python library which can be used as a CLI tool to process raw acoustic data from echosounders. It uses echopype as a backend. Developed at @pineviewlabs
https://oceanstream.io
MIT License
4 stars 3 forks source link
acoustics echopype echosounder ecology netcdf oceanography sonar underwater-acoustics zarr

OceanStream

OceanStream is an integrated cloud data platform used for hydroacoustic data collection and analysis in real-time. It is built on Azure IoT Edge infrastructure.

OceanStream.io

How to Install

Prerequisites

Setup

To contribute, clone the OceanStream repository's dev branch, which contains the latest development changes:

git clone -b dev https://github.com/OceanStreamIO/oceanstream.git

Navigate to the oceanstream directory:

cd oceanstream

Now, you can install dependencies, run tests, or start development! Direct all pull requests to the dev branch.

Using Conda/Mamba

  1. Create a Virtual Environment:
    python -m venv .venv

    This command creates a virtual environment in the .venv directory using Python 3.9.

Installation

Install the pre-commit tool using pip:

pip install pre-commit

Installing the Git Hook Scripts

Navigate to your repository where the .pre-commit-config.yaml file is located. Install the Git hook scripts with:

pre-commit install

Running Pre-Commit

Pre-commit will now run automatically every time you attempt to make a commit. If any hooks fail, the commit will be blocked, and you'll be prompted to fix the issues before committing again.

To manually run all hooks against all the files, use:

pre-commit run --all-files

Updating Hooks

To update your hooks to the latest versions, use:

pre-commit autoupdate

Skipping Hooks

To bypass the hooks for a particular commit, use the -n or --no-verify option:

git commit -m "Your commit message" -n

Uninstalling Pre-Commit

To uninstall the Git hook scripts, use:

pre-commit uninstall

Building Documentation Locally

Prerequisites

Ensure Python and pip are installed on your system.

Steps

  1. Install Sphinx:

    pip install sphinx

  2. Navigate to Your Project's docs Directory:

    cd /path/to/your/docs_directory

  3. Build the Documentation:

This command will generate the HTML documentation in the build/html directory within your docs folder.