Skip to main content

Utilities for interfacing with GLOBE Observer Data

Project description

GO-Utils

CI

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

  1. Fork this Repo
  2. Clone the Repo onto your computer
  3. Create a branch (git checkout -b new-feature)
  4. Make Changes
  5. Run necessary quality assurance tools (Formatter, Linter ,Unit Tests, Documentation).
  6. Add your changes (git commit -am "Commit Message" or git add . followed by git commit -m "Commit Message")
  7. Push your changes to the repo (git push origin new-feature)
  8. 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.

  1. Run pip install black to get the package.
  2. After making changes, run black ./.

This will automatically format your code to Python standards.

Linter

This codebase uses flake8 to lint code.

  1. Run pip install flake8 to get the package.
  2. 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.

  1. Run pip install pytest to get the package.
  2. After making changes, you can run pytest to 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 procedures
  • mosquito: tests for Mosquito Habitat Mapper procedures
  • util: tests for utility functions
  • downloadtest: 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.

  1. Run pip install pdoc to get the package.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

go_utils-1.0.3.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

go_utils-1.0.3-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file go_utils-1.0.3.tar.gz.

File metadata

  • Download URL: go_utils-1.0.3.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for go_utils-1.0.3.tar.gz
Algorithm Hash digest
SHA256 405655791bee72f72cf61e8e45b4c621a39212c603250073fe3dc9278eea4a91
MD5 263611c16ecb8178aabe6359291b9996
BLAKE2b-256 9ce8c104a2f260d24e4491b3ec79514bcc59cadc61a1a255378262e49a813b92

See more details on using hashes here.

File details

Details for the file go_utils-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: go_utils-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for go_utils-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a5bccae05281a7b3b05dd3e00953172efcddd3ac4e8b38c519f3f5ccd852d93
MD5 e70b9577dae22da96f4373cbcf2c9fe3
BLAKE2b-256 1c02c2ad7dd1167a3abf93209f8e7c027ded0e4821a48ab60b06da8a658a60f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page