IterationPrinter: A simple iteration history printer
When using iterative numerical algorithms it is common
to print after each iteration a message so that a user
can monitor convergence and catch any bugs.
As an example, demo.py implements a simple bisection algorithm
for computing the square root of two.
The following is the output using this library:
Usage
from iterprinter import IterationPrinter
# Initialize the printer by passing formatting information each column
printer = IterationPrinter(it = '4d', obj = '16.6e')
# Print a header for the table
printer.print_header(it = 'iter', obj = 'objective')
# Print a normal line of history
printer.print_iter(it = 0, obj = 5e3 )
# If a particular field is not provided, the column is left empty
printer.print_iter(it = 1)
For a more complete example, see demo.py.
Metadata
Release files for iterprinter 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iterprinter-0.1.2.tar.gz | 2.7 kB | Without provenance | Details for iterprinter-0.1.2.tar.gz |
Release files / iterprinter-0.1.2.tar.gz
| Download URL | iterprinter-0.1.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
272aa20b0e2ed000fb8dd7b7aa6bfd9caaf64857e049c1e0adc682f06983fe32
|
|
BLAKE2b-256 checksum How to use checksums |
2b00597195657d3bc4a63610550eb5156ed1c67dabdb33c4735069673d9b6220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
|
Security for iterprinter 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.