A simple package for paring together points.
Project description
A simple package for paring together points.
Usage
from pointpare import PointPare pp = PointPare() pp.add_points([... list of point ...]) pp.pare_points() pared_points = pp.get_pared_points()
Points can be provided as a list of lists, like so:
points = [[-10.4498, 31.1871, 1161.39], [-9.26793, 26.6263, 1162.51], [-8.96271, 27.5622, 1161.49], [-10.4498, 31.1871, 1161.39]] pp.add_points(points)
or as a flat list, where the list is divisible by three, like so:
points = [31.1871, 1161.39, -10.7776, 29.8503, 1162.7, -9.26793, 26.6263, 1162.51, -10.7776] pp.add_points(points)
Testing
Tests are written with unittest and can be run like so:
python -m unittest discover -s tests
Where the working directory is the base directory of the repository.
To run the coverage analysis with:
coverage run --source=src/ -m unittest discover -s tests
Where the working directory is the base directory of the repository.
The report should show something like the following:
Name Stmts Miss Cover ----------------------------------------------- src/pointpare/__init__.py 54 0 100% ----------------------------------------------- TOTAL 54 0 100%
from the coverage report command:
coverage report
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pointpare-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pointpare-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3400d7201c6b293732a79f214d7d6c6d7be415954e5de3924aaaffbde2128f4c |
|
MD5 | 6a01e5059493ab0eece3312b19c8eb21 |
|
BLAKE2b-256 | 5377c0d0b18611ccfd4386fc4deb6cb731c8d268f467678c9b325510c47ac44d |