Functions for geometric analysis of connected conic sections
Project description
Connected Conics
A library for geometric analysis of connected conic sections.
Usage
Install from PyPI Also install matplotlib (optional) to generate a plot for this example.
pipenv install connected_conics
pipenv install matplotlib
import yaml
import numpy
import matplotlib.pyplot as plt
from connected_conics import conic, helpers
fullspec = """
- r: [8]
e: [0.0]
d: 6.0
- r: [9]
e: [0.5]
d: 10.0
- r: [11]
e: [1.1]
d: 12.0
"""
fullspec_dict = yaml.safe_load(fullspec)
c = helpers.get_conic_from_fullspec(fullspec_dict, 0)
X = numpy.linspace(0, 6, 1000)
Y = conic.find_val_vectorized(c["rs"], c["es"], c["hds"], c["offsets"], X)
plt.figure()
plt.plot(X, Y)
plt.show()
Local development
git checkout ...
pipenv install --dev
pipenv install -e .
pipenv shell
py.test
Deployment
python setup.py sdist bdist_wheel
twine upload dist/*
Copyright 2020 Innovatus Technology Pty Ltd
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
connected_conics-0.0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for connected_conics-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 222ff644a94eed7232a74e898dbbd46201f2c9d9482e12ea749467152261b7e0 |
|
MD5 | fd76494308d2e1296279579d3dce8142 |
|
BLAKE2b-256 | f1c21f344a752d50f2d410f8aefe0990cb97e78e48c5ef2d94a4fd19e4f405b8 |