Localized Clustering and Alternatives (LCA) - An algorithm for curating a graph of animal sightings
Project description
Local CLusters and their Alternatives (LCA) plug-in for WBIA - Part of the WildMe / Wildbook IA Project.
Requirements
Python 3.5+
Python dependencies listed in requirements.txt
Installation Instructions
PyPI
The WBIA software is now available on pypi for Linux systems. This means if you have Python installed. You can simply run:
pip install wbia_lca
to install the software.
We highly recommend using a Python virtual environment: https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv
Citation
If you use this code or its models in your research, please cite:
@article{berger2017wildbook,
title={Wildbook: Crowdsourcing, computer vision, and data science for conservation},
author={Berger-Wolf, Tanya Y and Rubenstein, Daniel I and Stewart, Charles V and Holmberg, Jason A and Parham, Jason and Menon, Sreejith and Crall, Jonathan and Van Oast, Jon and Kiciman, Emre and Joppa, Lucas},
journal={arXiv preprint arXiv:1710.08880},
year={2017}
}
Documentation
The WBIA API Documentation can be found here: https://wbia-lca.readthedocs.io/en/latest/
Code Style and Development Guidelines
Contributing
It’s recommended that you use pre-commit to ensure linting procedures are run on any commit you make. (See also pre-commit.com)
Reference pre-commit’s installation instructions for software installation on your OS/platform. After you have the software installed, run pre-commit install on the command line. Now every time you commit to this project’s code base the linter procedures will automatically run over the changed files. To run pre-commit on files preemtively from the command line use:
git add .
pre-commit run
# or
pre-commit run --all-files
Brunette
Our code base has been formatted by Brunette, which is a fork and more configurable version of Black (https://black.readthedocs.io/en/stable/).
Flake8
Try to conform to PEP8. You should set up your preferred editor to use flake8 as its Python linter, but pre-commit will ensure compliance before a git commit is completed.
To run flake8 from the command line use:
flake8
This will use the flake8 configuration within setup.cfg, which ignores several errors and stylistic considerations. See the setup.cfg file for a full and accurate listing of stylistic codes to ignore.
PyTest
Our code uses Google-style documentation tests (doctests) that uses pytest and xdoctest to enable full support. To run the tests from the command line use:
pytest
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
File details
Details for the file wbia-lca-4.0.2.tar.gz
.
File metadata
- Download URL: wbia-lca-4.0.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd354acd20785d0e1332032b3ee3c3472ec18c9d8497980259c199c81558202f |
|
MD5 | 34d883c2a15d42538b824e6e5ed67ca3 |
|
BLAKE2b-256 | 1dde9739935bbc685e95f50e2149f79494a6d5e911cd38e57b7127383a0c1427 |
File details
Details for the file wbia_lca-4.0.2-py3-none-any.whl
.
File metadata
- Download URL: wbia_lca-4.0.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4417dd24e861309240b329728474bb0b6c0aca066e8cf05a0d2d0fdc4c04ee |
|
MD5 | 27db802cb22c5435dbfa52f73cd03f62 |
|
BLAKE2b-256 | cc253194c3ade497a550d1bb4b0aa9f008bb97757db27024fc6ec75199daf72b |