A plugin based data load and manimupulation library.
Installation
Use pip like:
$ pip install maidenhair
Usage
Assume that there are three kinds of samples and each samples have 5 indipendent experimental results. All filenames are written as the following format:
sample-type<type number>.<experiment number>.txt
And files are saved in data directory like:
+- data
|
+- sample-type1.001.txt
+- sample-type1.002.txt
+- sample-type1.003.txt
+- sample-type1.004.txt
+- sample-type1.005.txt
+- sample-type2.001.txt
+- sample-type2.002.txt
+- sample-type2.003.txt
+- sample-type2.004.txt
+- sample-type2.005.txt
+- sample-type3.001.txt
+- sample-type3.002.txt
+- sample-type3.003.txt
+- sample-type3.004.txt
+- sample-type3.005.txt
Then, the code for plotting the data will be:
>>> import matplotlib.pyplot as plt
>>> import maidenhair
>>> import maidenhair.statistics
>>> dataset = []
>>> dataset += maidenhair.load('data/sample-type1.*.txt', unite=True)
>>> dataset += maidenhair.load('data/sample-type2.*.txt', unite=True)
>>> dataset += maidenhair.load('data/sample-type3.*.txt', unite=True)
>>> nameset = ['Type1', 'Type2', 'Type3']
>>> for name, (x, y) in zip(nameset, dataset):
... xa = maidenhair.statistics.average(x)
... ya = maidenhair.statistics.average(y)
... ye = maidenhair.statistics.confidential_interval(y)
... plt.errorbar(xa, ya, yerr=ye, label=name)
...
>>> plt.show()
Metadata
Release files for maidenhair 0.3.5
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 | |
|---|---|---|---|---|
| maidenhair-0.3.5.tar.gz | 13.4 kB | Without provenance | Details |
Release files / maidenhair-0.3.5.tar.gz
| Download URL | maidenhair-0.3.5.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02ad85212753f298a4bfb44fa313b9c56618f71e2c0ceca0c07fcc0ee194fdc1
|
|
BLAKE2b-256 checksum How to use checksums |
55c133951d86ab23b505c875f29ba773f044246eb53336afe1d117abd7ea99bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for maidenhair 0.3.5
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.