Giter Club home page Giter Club logo

mate's Introduction

Mate

CircleCI Status

Installation

Note: Mate requires Python v3.6+, the following commands are written assuming :bash:`pip` has been setup as an alias to a Python 3 based installation. If this is not the case please use :bash:`pip3` in place of :bash:`pip` below.

Clone source code:

git clone https://github.com/ausseabed/mate.git
cd mate

Install dependencies:

pip install -r requirements.txt

Install application:

pip install -e .

Command Line Application

Mate includes a simple command line application. Usage can be displayed as follows:

%> hyo2.mate -h

usage: hyo2.mate [-h] -i INPUT [-o OUTPUT]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Path to input QA JSON file
  -o OUTPUT, --output OUTPUT
                        Path to output QA JSON file. If not provided will be
                        printed to stdout.

An example command line is shown below:

hyo2.mate --input tests/test_data/input.json --output tests/test_data/test_out.json

Testing

Unit tests can be run as follows:

python -m pytest --cov=hyo2.mate --cov-report=html  tests/

Note: Unit tests will fail if the test data has not been downloaded (see following section)

Test Data

A collection of data has been uploaded to an AWS S3 bucket to support testing and development of the Mate application. This data requires AWS credentials to download (contact development team).

Once AWS access credentials have been obtained the test data can be downloaded using the AWS CLI.

Note: This data is approximately 20Gb in size

Windows instructions

Set environment variables for AWS:

set AWS_ACCESS_KEY_ID=<AWS Access Key Id>
set AWS_SECRET_ACCESS_KEY=<AWS Access Key Secret>

Download data from S3 into current folder:

aws s3 sync s3://ausseabed-marine-qa-data/mate-test-data/ ./tests/test_data_remote

Linux, MacOS instructions

Set environment variables for AWS:

export AWS_ACCESS_KEY_ID=<AWS Access Key Id>
export AWS_SECRET_ACCESS_KEY=<AWS Access Key Secret>

Download data from S3 into current folder:

aws s3 sync s3://ausseabed-marine-qa-data/mate-test-data/ ./tests/test_data_remote

mate's People

Contributors

boyd03m avatar lachlanhurst avatar wenjunwu avatar wenjunwu123 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

giumas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.