Skip to main content

An automated package that solves basic python errors

Project description

Error Solver

PyPI - Python Version PyPI Build Status Documentation Status codecov

About

This package contains classes and methods to automatically identify errors with python packages and solve it. The package catchs any errors related to the execeution of the script and try to automatically solve it. If it does not succes the package add lots of verbosity to identify where the error comes from and how to solve it. Very useful tool for debugging python scripts.

Installation

This package may be installed via pip:

pip install solverErrors2

The above installation only install the dependencies required for the ErrorSolverPy class. To also install the dependencies necessary for the ErrorSolver class, use the following command instead:

pip install error_solver[all] solve-errors

Installation bug

If the package is working well, contact us to leave a comment or try installing the package using Administrator level rights.

Example: Error in Cylinder

The below example determines the propagation error tolerances for the cross sectional area A and volume V of a cylinder given the measurement tolerance for the radius r and height h.

from error_solver import ErrorSolver
import solve-errors

# Define the equations
EQUATIONS = [
    'A = pi * r**2',
    'V = A * h'
]

# Solve the equations by some means and assemble the values in a dictionary
values = {
    'h': 12,
    'r': 5,
    'A': 78.54,
    'V': 942.48
}

# Define the known error tolerances
errors = {
    'h': 0.05,
    'r': 0.05
}

solver = solve-errors.ErrorSolver(EQUATIONS)
solver.solve(values, errors)
#           value      error  pct_error  is_calc
# var
# A     78.539816   1.570796   2.000000     True
# V    942.477796  22.776547   2.416667     True
# h     12.000000   0.050000   0.416667    False
# r      5.000000   0.050000   1.000000    False

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

solvingerrors-1.0.12.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solvingerrors-1.0.12-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file solvingerrors-1.0.12.tar.gz.

File metadata

  • Download URL: solvingerrors-1.0.12.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for solvingerrors-1.0.12.tar.gz
Algorithm Hash digest
SHA256 1f49483f90ff0b2b68cd74d51827c95e96023387fa78622ed151ea113d3f2302
MD5 039d6c94880477894e4257aaea9ef992
BLAKE2b-256 598a809571109393e12981c79cd6c8afc217dd948b5fd7b3b1e81e4877813968

See more details on using hashes here.

File details

Details for the file solvingerrors-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: solvingerrors-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for solvingerrors-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 da8ed87388bef11143644a6548b954d13fd42cdc35a7443e844d16e8b5d50a00
MD5 920a4d7d0b47c9eddf2acf2d6d24e115
BLAKE2b-256 c8387205f7bf50932cdb701473d368fd88694d8f63b3050b88aab12c2221b3a6

See more details on using hashes here.

Supported by

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