goraj / amp

Tools for time series processing and visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to setup

Documentation

  • Documentation is under documentations/notes and in the directory of the corresponding tools

Setting up a tmux session

  • Create a tmux session for amp set-up
    > cd ~/src
    > ./dev_scripts/tmux.sh 1

Development flow

  • We package in Docker containers what is needed to run AM system
    • E.g., command lines and unit tests should always run inside a container
  • We don't development tools save inside container, but we use the local machine to develop (e.g., running PyCharm)
  • Some workflows are run on a development machine without Docker
    • We install a light virtual environment with the minimum set of dependency
      • We use pyinvoke, a replacement for make written in Python, to create workflows
    • invoke always runs outside Docker and in a shell on the dev machine
    • The code for the client setup is under dev_scripts/client_setup

Cloning the repo

  • Path to the local repo folder should look like this:
    ~/src/amp{IDX}

where IDX is an integer, e.g. ~/src/amp1, ~/src/amp2

  • This is required to run go_amp.sh script
  • To clone a repo, use SSH cloning command described here in Github official documentation.
    > git clone git@github.com:cryptomtc/amp.git /your/path/amp1

Setting up the env

  • After cloning the repo, copy dev_scripts/go_amp.sh script to your home (~) folder:

    > cp dev_scripts/go_amp.sh ~
  • Build the thin virtual env on the dev machine

    > dev_scripts/client_setup/build.sh
  • Configure the env

    • source dev_scripts/setenv_amp.sh

Docker

  • Create a docker bash to run interactively (e.g., pytest or command lines)

    # Pull the container.
    > invoke docker_pull
    > invoke docker_bash
  • Run fast tests:

    > invoke run_fast_tests

About

Tools for time series processing and visualization

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Jupyter Notebook 55.3%Language:HTML 27.1%Language:Python 16.5%Language:Perl 0.5%Language:Shell 0.4%Language:Makefile 0.1%Language:Dockerfile 0.0%