Utilities for interfacing with GLOBE Observer Data
Project description
GO-Utils
This Package is designed to provide utilities for interfacing with GLOBE Observer Data, particularly the Mosquito Habitat Mapper and Landcover Datasets.
Installation
Run pip install go-utils to install this package.
Contributing
- Fork this Repo
- Clone the Repo onto your computer
- Create a branch (
git checkout -b new-feature) - Make Changes
- Run necessary quality assurance tools (Formatter, Linter ,Unit Tests, Documentation).
- Add your changes (
git commit -am "Commit Message"orgit add .followed bygit commit -m "Commit Message") - Push your changes to the repo (
git push origin new-feature) - Create a pull request
Do note you can locally build the package with pip install -e . and run unit tests with pytest -s go_utils.
There are also several tools used by this repository to ensure code quality:
Formatter
This codebase uses the black formatter to check code format.
- Run
pip install blackto get the package. - After making changes, run
black ./.
This will automatically format your code to Python standards.
Import Sorting
To make sure imports are sorted, isort is used.
- Run
pip install isortto get the package. - After making changes, run
isort ./ --profile black(the profile black ensures no conflicts with the black formatter)
Linter
This codebase uses flake8 to lint code.
- Run
pip install flake8to get the package. - After making changes, run
flake8.
The linter will notify you of any code that isn't up to Python standards.
Unit Tests
This codebase uses pytest to run unit tests for the code.
- Run
pip install pytestto get the package. - After making changes, you can run
pytestto run all unit tests. See Advanced Usage for more information.
These tests will make sure the code performs as expected.
Advanced Usage
To run tests relevant to a specific function/area, there are several markers that can be used:
landcover: tests for Landcover proceduresmosquito: tests for Mosquito Habitat Mapper proceduresutil: tests for utility functionsdownloadtest: tests for functions that download GLOBE data over the internet.cleanup: tests for functions involved in the cleanup procedure
To specifically call a subset of tests, the -m flag must be used (e.g. pytest -m "landcover"). Using the or keyword can be used to include multiple subsets (e.g. pytest -m "landcover or mosquito"), but do note that the current markers aren't mutually exclusive (the and keyword accomplishes this). Using the not keyword can be used to exclude subsets (e.g. pytest -m "not downloadtest"), this is particularly useful for excluding the download tests as those tend to take a considerable amount of time.
Previewing Documentation
The documentation for this package is built by the pdoc module.
- Run
pip install pdocto get the package. - To preview the documentation, run
pdoc -t doc_template --docformat numpy go_utils.
This will locally host an updated documentation website which lets you preview any changes you may have made to the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file go_utils-1.2.2.tar.gz.
File metadata
- Download URL: go_utils-1.2.2.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51207281eeb3a5f22aa7081f66fe0e3464d1bc6edcfa3548a0a5f3bc1584fced
|
|
| MD5 |
54fd33fd0c559ed908a4dd2174d03258
|
|
| BLAKE2b-256 |
43edb3faab09c894d9d2a828f72416f85fc6b31585b4a6ffae9d7a7bcabefccf
|
File details
Details for the file go_utils-1.2.2-py3-none-any.whl.
File metadata
- Download URL: go_utils-1.2.2-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6094e941ea0dc474f1d7c81c9f174d7defbf227728274afebf1c7910151b7d40
|
|
| MD5 |
fa5d4209e85714343b02a03fffc5a322
|
|
| BLAKE2b-256 |
0e669c9bbc385b5131e1adcf1c5a541bcdadf9471a969612559a57e4c07b1101
|