Skip to main content

Convert raw text data files into a single excel file.

Project description

Build status Coverage Downloads Latest version Wheel Status Egg Status License

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()

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

maidenhair-0.3.1.tar.gz (13.4 kB view details)

Uploaded Source

File details

Details for the file maidenhair-0.3.1.tar.gz.

File metadata

  • Download URL: maidenhair-0.3.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for maidenhair-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5282368e71633f49bfe5ef9866bf6356a78f996e813065275a991531eca53872
MD5 3f5ed0f332207f4c7b35d310f19d6c13
BLAKE2b-256 bb7e688642bc0c64dcf2f8c6865538ebf7a8167f330d4a98dac2831b0f6bad06

See more details on using hashes here.

Supported by

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