Skip to main content

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


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 details)

Uploaded Source

Built Distribution

connected_conics-0.0.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for connected_conics-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c6caf60979902cc6cb92b226d5cc59cf2dd042a1b0faaabe305631938d352eba
MD5 d72c406806bd71e4dcb3e3f2da668143
BLAKE2b-256 413930f78e732ab5df735f8d1062c2161997493fc989c29247400e268c9f8496

See more details on using hashes here.

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

Hashes for connected_conics-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23593d32188e4b90608fd79f376855abb1fd0fd39561fd330898f6a92ae2e157
MD5 5313849d87422e98c029941a1ab75673
BLAKE2b-256 3c55617e0038595e948062bdf0e2f10bd444002e6f5a569b0c379d0833fb3359

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page