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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file connected_conics-0.0.3.tar.gz.
File metadata
- Download URL: connected_conics-0.0.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6caf60979902cc6cb92b226d5cc59cf2dd042a1b0faaabe305631938d352eba
|
|
| MD5 |
d72c406806bd71e4dcb3e3f2da668143
|
|
| BLAKE2b-256 |
413930f78e732ab5df735f8d1062c2161997493fc989c29247400e268c9f8496
|
File details
Details for the file connected_conics-0.0.3-py3-none-any.whl.
File metadata
- Download URL: connected_conics-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23593d32188e4b90608fd79f376855abb1fd0fd39561fd330898f6a92ae2e157
|
|
| MD5 |
5313849d87422e98c029941a1ab75673
|
|
| BLAKE2b-256 |
3c55617e0038595e948062bdf0e2f10bd444002e6f5a569b0c379d0833fb3359
|