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.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for connected_conics-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23593d32188e4b90608fd79f376855abb1fd0fd39561fd330898f6a92ae2e157 |
|
MD5 | 5313849d87422e98c029941a1ab75673 |
|
BLAKE2b-256 | 3c55617e0038595e948062bdf0e2f10bd444002e6f5a569b0c379d0833fb3359 |