This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This package provides an easy way to open a datafile by returning a “modified” dictionnary (see Guessing) of numpy arrays that corresponds to the differents columns.If the column contains strings it will return an array of strings.

By default it will try to guess the indexation from the commentaries, and if failed will index it from 0 to n:

#!/usr/bin/env python

from datafile.extractfile import dataFile

f = dataFile("./datafile/test/testdocfile.txt")
# the index will be guessed and if not found it will
# be indexed from 0 to n

f = dataFile("./datafile/test/testdocfile.txt",index="auto")
#f will be indexed from 0 to n

#f["0"] will return a numpy array of the first column.
#f["0",1] will return a numpy array of the index number 1 of the first column,
# if the column is divided in index (ensemble of points separated by one or more space)

f = dataFile("./datafile/test/testdocfile.txt" , "A B C D")
#f will be indexed on "A" "B" "C" (if three columns)
f = dataFile("./datafile/test/testdocfile.txt" , ["A", "B","C","D"]
#f will be indexed on "A" "B" "C"


if the datafile contains in the commentaries a line like: #Lx(nm) Ly(nm) D(A) and the file at three column, it will index the three columns with “Lx(nm)” “Ly(nm)” , “D(A)”:

#!/usr/bin/env python
f = dataFile("./file")
#both are going to return the first column
#will return a key error

Main usage

I use it with ipython to plot datas and explore them. Lauching ipython -pylab will launch a ipython with matplotlib loaded. After loading the file with dataFile you can plot the data with only typping plot(f[“A”],f[“B”])

email :

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
DataFile-0.1.6.linux-x86_64.exe (68.7 kB) Copy SHA256 Checksum SHA256 any Windows Installer Mar 23, 2010
DataFile-0.1.6.tar.gz (19.7 kB) Copy SHA256 Checksum SHA256 Source Mar 23, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting