Skip to main content

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

Metadata

Release files for solvingerrors 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solvingerrors 1.1.0
File Size Uploaded
solvingerrors-1.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solvingerrors 1.1.0
File Interpreter ABI Platform
solvingerrors-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / solvingerrors-1.1.0.tar.gz

Download URL solvingerrors-1.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a7671554760d170f90292bc7a6fefb4870647d4a25853e1190fe901a63735461
BLAKE2b-256 checksum
How to use checksums
229defd16d3a51f9247ad40918e73611bf4569283fda43959f19bb7e09cdb589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / solvingerrors-1.1.0-py3-none-any.whl

Download URL solvingerrors-1.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9f410a1c3c556193e7d93df51055177f03b2ba5d6ff27db6a491a2c617a3f7e
BLAKE2b-256 checksum
How to use checksums
e81c06e12e763a11f52fda180f207decd6d3c6a7763ed23f9a7f07bcbf049d41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.12

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page