Skip to main content

Introduction

The Stoner Python package is a set of utility classes for writing data analysis code. It was written within the Condensed Matter Physics group at the University of Leeds as a shared resource for quickly writing simple programs to do things like fitting functions to data, extract curve parameters and churn through large numbers of small text data files.

For a general introduction, users are referred to the Users Guide pdf file that can be found in the doc/UserGuide directory in the github repository. There is also an API reference in the form of a compiled help file in the doc directory that is generated with Sphinx from the embedded docstrings in the source code.

Getting this Code

The Stoner package requires numpy >=1.4, scipy >=0.12, matplotlib >=1.1 and h5py. Experimental code also makes use of the Enthought Tools Suite packages.

The easiest way to install this code is via seuptools’ easy_install: .. code-block:: sh

> easy_install Stoner

This will install the Stoner package into your current Python environment. Since the package is under fairly constant updates, you might want to follow the development with git. The source code, along with example scripts and some sample data files can be obtained from the github repository: <https://github.com/gb119/Stoner-PythonCode>

Overview

The Stoner package provides two basic top-level classes that describe an individual file of experimental data and a list (such as a directory tree on disc) of many experimental files. For our research, a typical single experimental data file is essentially a single 2D table of floating point numbers with associated metadata, usually saved in some ASCII text format. This seems to cover most experiments in the physical sciences, but it you need a more complex format with more dimensions of data, we suggest you look elsewhere.

DataFile and Friends

Stoner.Core.DataFile is the base class for representing individual experimental data sets. It provides basic methods to examine and manipulate data, manage metadata and load and save data files. It has a large number of sub classes - most of these are in Stoner.FileFormats and are used to handle the loading of specific file formats. Two, however, contain additional functionality for writing analysis programs.

  • Stoner.Analysis.AnalyseFile provides additional methods for curve-fitting, differentiating, smoothing and carrying out : basic calculations on data.

  • Stoner.Plot.PlotFile provides additional routines for plotting data on 2D or 3D plots.

As mentioned above, there are subclasses of DataFile in the Stoner.FileFormats module that support loading many of the common file formats used in our research.

DataFolder

Stoner.Folders.DataFolder is a class for assisting with the work of processing lots of files in a common directory structure. It provides methods to list. filter and group data according to filename patterns or metadata and then to execute a function on each file or group of files.

The Stoner.HDF5 module provides some experimental classes to manipulate DataFile and DataFolder objects within HDF5 format files. These are not a way to handle arbitary HDF5 files - the format is much to complex and flexible to make that an easy task, rather it is a way to work with large numbers of experimental sets using just a single file which may be less brutal to your computer’s OS than having directory trees with millions of individual files.

Resources

Included in the package are a (small) collection of sample scripts for carrying out various operations and some sample data files for testing the loading and processing of data. There is also a user guide <UserGuide/ugindex> as part of this help file, along with a complete API reference:

Contact and Licensing

The lead developer for this code is Dr Gavin Burnell <<g.burnell@leeds.ac.uk>> <http://www.stoner.leeds.ac.uk/people/gb>. The User Guide gives the current list of other contributors to the project.

This code and the sample data are all (C) The University of Leeds 2008-2013 unless otherwise indficated in the source file. The contents of this package are licensed under the terms of the GNU Public License v3

Metadata

Release files for Stoner 0.1.8-20140206

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for Stoner 0.1.8-20140206
File Interpreter ABI Platform
Stoner-0.1.8_20140206-py2.7.egg Legacy Egg format - - Details

Release files / Stoner-0.1.8_20140206-py2.7.egg

Download URL Stoner-0.1.8_20140206-py2.7.egg
Size 214.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
defd9b27e9ded958cebca5205d5715ec28e64033b564a204308e4f594477740f
BLAKE2b-256 checksum
How to use checksums
f79c2fba7051e7fadd9c5627140fd94824193a00bddde4b0c957c2a2b026c2af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.11.5

2 release files

0.11.4

2 release files

0.11.0

2 release files

0.10.8

1 release file

0.10.7

1 release file

0.10.4

2 release files

0.10.3

2 release files

0.10.0

2 release files

0.9.6

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

1 release file

0.7.0

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

2 release files

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

This release

0.1.8-20140206 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page