Taped
A simple way to record the outputs of simulations.
Taped is inspired by loguru which makes logging easy: Tape makes it is to not only save the logs of simulations ran in Python, but also to save data, plots and any other useful file which you'll need to analyze the simulations' results.
To install Tape, create a python environment and use:
pip install tpd
Usage
Using Taped is easy:
from tpd import recorder
recorder.start(
base_folder='my_computer/my_data',
name='simulation_2'
)
'''
Creates a folder 'simulation_2' in the 'base_folder'
From now on, all data, logs and plots will be saved in
my_computer/my_data/simulation_2
'''
# all logs will be saved in a .log file
from loguru import logger
logger.info('I cant wait to check the logs later!')
# you can save data to file easily
import numpy as np
X = np.random.rand(100, 100)
recorder.add_data(X, 'my_results', fmt='npy') # or 'mat' for matlab
# and save plots
import matplotlib.pyplot as plt
f = plt.figure()
recorder.add_figure(f, 'first plot', svg=True)
del f
# and save multiple figures at once
f1 = plt.figure()
f2 = plt.figure()
f1._save_name = 'first of two'
f2._save_name = 'second of two'
recorder.add_figures()
# finally, you can check what's saved so far
recorder.describe()
The result should look somthing like this:
Metadata
Release files for tpd 1.8.1
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 |
|---|---|---|---|---|
| tpd-1.8.1.tar.gz | 931.7 kB | Without provenance | Details for tpd-1.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tpd-1.8.1-py3-none-any.whl | Python 3 | none | any | Details for tpd-1.8.1-py3-none-any.whl |
Total release size: 939.1 kB
Release files / tpd-1.8.1.tar.gz
| Download URL | tpd-1.8.1.tar.gz |
|---|---|
| Size | 931.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb9369611e11064ac66eed7fd801743bf455541e469c71eccc6d0e935e725381
|
|
BLAKE2b-256 checksum How to use checksums |
63e8c00f9401e321451994d8d5d33aafbc2dc96f5c32c796bb6cb098b0556061
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
|
Release files / tpd-1.8.1-py3-none-any.whl
| Download URL | tpd-1.8.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22cb00ba9b1adcf5964bf44b0a8e4fc2faee20a479cfaae213846d2ae6e391a6
|
|
BLAKE2b-256 checksum How to use checksums |
656d5a2f0f0a4d255dc8272892975e37c8c2b1c21eab6194acd14c79b10dd003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0
|
Security for tpd 1.8.1
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.