Stoner Package

Primary Classes

Stoner.Data(*args, **kargs)

Base class object that represents a matrix of data, associated metadata and column headers.

Stoner.DataFolder(*args, **kargs)

Provide an interface to manipulating lots of data files stored within a directory structure on disc.

Stoner.Image.ImageFile(*args)

An Image file type that is analogous to Stoner.Data.

Stoner.Image.ImageFolder(*args, **kargs)

Folder object for images.

Inheritance Diagrams

digraph inheritance5495e4882c { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Stoner.Analysis.AnalysisMixin" [URL="classes/Stoner.Analysis.AnalysisMixin.html#Stoner.Analysis.AnalysisMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A mixin calss designed to work with :py:class:`Stoner.Core.DataFile` to provide additional analysis methods."]; "Stoner.core.base.metadataObject" [URL="classes/Stoner.core.base.metadataObject.html#Stoner.core.base.metadataObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represent some sort of object that has metadata stored in a :py:class:`Stoner.Core.TypeHintedDict` object."]; "collections.abc.MutableMapping" -> "Stoner.core.base.metadataObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.data.Data" [URL="classes/Stoner.Data.html#Stoner.Data",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class object that represents a matrix of data, associated metadata and column headers."]; "Stoner.core.interfaces.DataFileInterfacesMixin" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.operators.DataFileOperatorsMixin" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.property.DataFilePropertyMixin" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.base.metadataObject" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.MutableSequence" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.Analysis.AnalysisMixin" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.plot.core.PlotMixin" -> "Stoner.core.data.Data" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.interfaces.DataFileInterfacesMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Implement the required methods for a sequence and mapping type object."]; "Stoner.core.operators.DataFileOperatorsMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Provides the operator mixins for DataFile like objects."]; "Stoner.core.property.DataFilePropertyMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Provide the properties for DataFile Like Objects."]; "Stoner.plot.core.PlotMixin" [URL="classes/Stoner.plot.PlotMixin.html#Stoner.plot.PlotMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A mixin class that works with :py:class:`Stoner.Core.DataFile` to add additional plotting functionality."]; "collections.abc.Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Sized" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Iterable" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Mapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mapping is a generic container for associating key/value"]; "collections.abc.Collection" -> "collections.abc.Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.MutableMapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A MutableMapping is a generic container for associating"]; "collections.abc.Mapping" -> "collections.abc.MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "collections.abc.Sequence" -> "collections.abc.MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" -> "collections.abc.Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "collections.abc.Reversible" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Collection" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; } digraph inheritancee212b77c9e { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Stoner.Folders.DataFolder" [URL="classes/Stoner.Folders.DataFolder.html#Stoner.Folders.DataFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provide an interface to manipulating lots of data files stored within a directory structure on disc."]; "Stoner.folders.mixins.DataMethodsMixin" -> "Stoner.Folders.DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.mixins.DiskBasedFolderMixin" -> "Stoner.Folders.DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.core.BaseFolder" -> "Stoner.Folders.DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.core.BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "collections.abc.MutableSequence" -> "Stoner.folders.core.BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.mixins.DataMethodsMixin" [URL="classes/Stoner.folders.mixins.DataMethodsMixin.html#Stoner.folders.mixins.DataMethodsMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Methods for working with :py:class:`Stner.Data` in py:class:`Stoner.DataFolder`s."]; "Stoner.folders.mixins.DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "collections.abc.Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Sized" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Iterable" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "collections.abc.Sequence" -> "collections.abc.MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" -> "collections.abc.Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "collections.abc.Reversible" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Collection" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; } digraph inheritance7331b32f16 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Stoner.Image.core.ImageFile" [URL="classes/Stoner.Image.ImageFile.html#Stoner.Image.ImageFile",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An Image file type that is analogous to :py:class:`Stoner.Data`."]; "Stoner.core.base.metadataObject" -> "Stoner.Image.core.ImageFile" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.core.base.metadataObject" [URL="classes/Stoner.core.base.metadataObject.html#Stoner.core.base.metadataObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represent some sort of object that has metadata stored in a :py:class:`Stoner.Core.TypeHintedDict` object."]; "collections.abc.MutableMapping" -> "Stoner.core.base.metadataObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Sized" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Iterable" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Mapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mapping is a generic container for associating key/value"]; "collections.abc.Collection" -> "collections.abc.Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.MutableMapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A MutableMapping is a generic container for associating"]; "collections.abc.Mapping" -> "collections.abc.MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; } digraph inheritanceace6ba69a8 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Stoner.Image.folders.ImageFolder" [URL="classes/Stoner.Image.folders.ImageFolder.html#Stoner.Image.folders.ImageFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Folder object for images."]; "Stoner.Image.folders.ImageFolderMixin" -> "Stoner.Image.folders.ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.mixins.DiskBasedFolderMixin" -> "Stoner.Image.folders.ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.core.BaseFolder" -> "Stoner.Image.folders.ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.Image.folders.ImageFolderMixin" [URL="classes/Stoner.Image.folders.ImageFolderMixin.html#Stoner.Image.folders.ImageFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to provide a folder object for images."]; "Stoner.folders.core.BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "collections.abc.MutableSequence" -> "Stoner.folders.core.BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Stoner.folders.mixins.DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "collections.abc.Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Sized" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Iterable" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" -> "collections.abc.Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "collections.abc.Sequence" -> "collections.abc.MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "collections.abc.Iterable" -> "collections.abc.Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "collections.abc.Reversible" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Collection" -> "collections.abc.Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "collections.abc.Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Numerical Data Objects

Core Package and Modules

Stoner.core.base Module

Base classes for the Stoner package.

Functions

string_to_type(value)

Given a string value try to work out if there is a better python type dor the value.

Classes

_evaluatable()

Placeholder to indicate that special action needed to convert a string representation to valid Python type.

RegexpDict

An ordered dictionary that permits looks up by regular expression.

TypeHintedDict(*args, **kargs)

Extends a blist.sorteddict to include type hints of what each key contains.

metadataObject(*args)

Represent some sort of object that has metadata stored in a Stoner.Core.TypeHintedDict object.

Stoner.core.array Module

Provides the DataArray class.

A subclass of numpy.ma.MaskedArray that knows that columns have names.

Classes

DataArray(input_array, *args, **kargs)

A sub class of numpy.ma.MaskedArray with a copy of the setas attribute to allow indexing by name.

Stoner.core.setas Module

setas module provides the setas class for DataFile and friends.

Classes

setas([row, bless])

A Class that provides a mechanism for managing the column assignments in a DataFile like object.

Stoner.core.exceptions Module

Stoner Package specific exceptions.

Functions

assertion(condition[, message])

Raise an error when condition is false.

Classes

StonerAssertionError

An exception raised when the library thinks an assertion has failed.

StonerLoadError

An exception thrown by the file loading routines in the Stoner Package.

StonerSetasError

An exception tjrown when we try to access a column in data without setas being set.

StonerUnrecognisedFormat

An exception thrown by the file loading routines in the Stoner Package.

Stoner.core.utils Module

Functions

add_core(other, newdata)

Implement the core work of adding other to self and modifying newdata.

and_core(other, newdata)

Implement the core of the & operator, returning data in newdata.

sub_core(other, newdata)

Worker for the subtraction.

mod_core(other, newdata)

Implement the column deletion method.

copy_into(source, dest)

Copy the data associated with source to dest.

decode_string(value)

Expand a string of column assignments, replacing numbers with repeated characters.

Classes

Tab_Delimited()

A customised csv dialect class for reading tab delimited text files.

Analysis Package

Stoner.Analysis Module

Stoner .Analysis provides a subclass of Data that has extra analysis routines builtin.

Classes

AnalysisMixin()

A mixin calss designed to work with Stoner.Core.DataFile to provide additional analysis methods.

Stoner.analysis.fitting Package

Provides additional functionality for doing curve fitting to data.

Classes

ODR_Model(*args, **kargs)

A wrapper for converting lmfit models to odr models.

Fitting Models

Plot Package and Modules

Stoner.plot Package

Stoner.plot sub-package - contains classes and functions for visuallising data.

Most of the plotting functionality is provided by the PlotMixin mixin class which is available through the Stoner.Data class.

The formats module provides a set of template classes for producing different plot styles and formats. The Stoner.plot.util module provides some handy utility functions.

Classes

PlotMixin(*args, **kargs)

A mixin class that works with Stoner.Core.DataFile to add additional plotting functionality.

Stoner.plot.formats Module

Plot Templates module - contains classes that style plots produced by Data.

Classes

TexFormatter()

An axis tick label formatter that emits Tex formula mode code.

TexEngFormatter([unit, places, sep, usetex, ...])

An axis tick label formatter that emits Tex formula mode code.

DefaultPlotStyle(*args, **kargs)

Produces a default plot style.

GBPlotStyle(*args, **kargs)

Template developed for Gavin's plotting.

JTBPlotStyle(*args, **kargs)

Template class for Joe's Plot settings.

JTBinsetStyle(*args, **kargs)

Template class for Joe's Plot settings.

PRBPlotStyle(*args, **kargs)

A figure Style for making figures for Phys Rev * Jounrals.

SketchPlot(*args, **kargs)

Turn on xkcd plot style.

SeabornPlotStyle

alias of DefaultPlotStyle

Class Inheritance Diagram
digraph inheritance55b5297a28 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "DefaultPlotStyle" [URL="classes/Stoner.plot.formats.DefaultPlotStyle.html#Stoner.plot.formats.DefaultPlotStyle",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Produces a default plot style."]; "MutableMapping" -> "DefaultPlotStyle" [arrowsize=0.5,style="setlinewidth(0.5)"]; "EngFormatter" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.EngFormatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Format axis values using engineering prefixes to represent powers"]; "ScalarFormatter" -> "EngFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Formatter" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.Formatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Create a string based on a tick value and location."]; "TickHelper" -> "Formatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GBPlotStyle" [URL="classes/Stoner.plot.formats.GBPlotStyle.html#Stoner.plot.formats.GBPlotStyle",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Template developed for Gavin's plotting."]; "DefaultPlotStyle" -> "GBPlotStyle" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "JTBPlotStyle" [URL="classes/Stoner.plot.formats.JTBPlotStyle.html#Stoner.plot.formats.JTBPlotStyle",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Template class for Joe's Plot settings."]; "DefaultPlotStyle" -> "JTBPlotStyle" [arrowsize=0.5,style="setlinewidth(0.5)"]; "JTBinsetStyle" [URL="classes/Stoner.plot.formats.JTBinsetStyle.html#Stoner.plot.formats.JTBinsetStyle",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Template class for Joe's Plot settings."]; "DefaultPlotStyle" -> "JTBinsetStyle" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Mapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mapping is a generic container for associating key/value"]; "Collection" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MutableMapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A MutableMapping is a generic container for associating"]; "Mapping" -> "MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PRBPlotStyle" [URL="classes/Stoner.plot.formats.PRBPlotStyle.html#Stoner.plot.formats.PRBPlotStyle",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A figure Style for making figures for Phys Rev * Jounrals."]; "DefaultPlotStyle" -> "PRBPlotStyle" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ScalarFormatter" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Format tick values as a number."]; "Formatter" -> "ScalarFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "SketchPlot" [URL="classes/Stoner.plot.formats.SketchPlot.html#Stoner.plot.formats.SketchPlot",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Turn on xkcd plot style."]; "DefaultPlotStyle" -> "SketchPlot" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TexEngFormatter" [URL="classes/Stoner.plot.formats.TexEngFormatter.html#Stoner.plot.formats.TexEngFormatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An axis tick label formatter that emits Tex formula mode code."]; "EngFormatter" -> "TexEngFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TexFormatter" [URL="classes/Stoner.plot.formats.TexFormatter.html#Stoner.plot.formats.TexFormatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An axis tick label formatter that emits Tex formula mode code."]; "Formatter" -> "TexFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TickHelper" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.TickHelper",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Stoner.plot.utils Module

Functions

errorfill(x, y[, yerr, xerr, color, ls, lw, ...])

Plot data with errors marked by a filled region.

File Formats Package Module

Data Classes

Stoner.formats.data Package

Sub-package of routines to load Data objects in different formats.

This sub-package is lazy-loaded but then pulls in all of the modules in order to register the routines.

Image Classes

Stoner.formats.image Package

Sub-package of routines to load ImageFile objects in different formats.

This sub-package is lazy-loaded but then pulls in all of the modules in order to register the routines.

The following modules offer specialised file and foler formats.

HDF Support

Stoner.HDF5 Module

Classes

HDF5File(*args, **kargs)

A sub class of DataFile that sores itself in a HDF5File or group.

HDF5Folder(*args, **kargs)

Just enforces the loader attriobute to be an HDF5File.

HGXFile(*args, **kargs)

A subclass of DataFile for reading GenX HDF Files.

SLS_STXMFile(*args, **kargs)

Load images from the Swiss Light Source Pollux beamline.

STXMImage(*args)

An instance of KerrArray that will load itself from a Swiss Light Source STXM image.

HDFFileManager(filename[, mode])

Context manager for HDF5 files.

Zip File Support

Stoner.Zip Module

Functions

test_is_zip(filename[, member])

Recursively searches for a zipfile in the tree.

Classes

ZippedFile(*args, **kargs)

A sub class of DataFile that sores itself in a zip file.

ZipFolderMixin(*args, **kargs)

Provides methods to load and save data from a single Zip file.

ZipFolder(*args, **kargs)

A sub class of DataFile that sores itself in a zip file.

Utility Functions

Stoner.Util Module

Functions

split_up_down(data[, col, folder])

Split the DataFile data into several files where the column col is either rising or falling.

ordinal(value)

Format an integer into an ordinal string.

hysteresis_correct(data, **kargs)

Perform corrections to a hysteresis loop.

Stoner.tools Package

Support functions for Stoner package.

These functions depend only on Stoner.compat which is used to ensure a consistent namespace between python 2.7 and 3.x.

Functions

all_size(iterator[, size])

Check whether each element of iterator is the same length/shape.

all_type(iterator, typ)

Determine if an interable omnly contains a common type.

fix_signature(proxy_func, wrapped_func)

Update proxy_func to have a signature that matches the wrapped func.

format_error(value[, error])

Format answer with the uncertaintly to 1sf and the value to no more sf's than the uncertainty.

format_val(value, **kargs)

Format a number as an SI quantity.

html_escape(s[, quote])

Replace special characters "&", "<" and ">" to HTML-safe sequences.

isanynone(*args)

Intelligently check whether any of the inputs are None.

isComparable(v1, v2)

Return true if v1 and v2 can be compared sensibly.

isnone(iterator)

Return True if input is None or an empty iterator, or an iterator of None.

isiterable(value)

Chack to see if a value is iterable.

isLikeList(value)

Return True if value is an iterable but not a string.

isproperty(obj, name)

Check whether an attribute of an object or class is a property.

isTuple(obj, *args[, strict])

Determine if obj is a tuple of a certain signature.

copy_into(source, dest)

Copy the data associated with source to dest.

make_Data(*args, **kargs)

Return an instance of Stoner.Data passig through constructor arguments.

quantize(number, quantum)

Round a number to the nearest multiple of a quantum.

tex_escape(text)

Escapes spacecial text characters in a string.

get_option(name)

Return the option value.

set_option(name, value)

Set a global package option.

ordinal(value)

Format an integer into an ordinal string.

Classes

AttributeStore

alias of attributeStore

TypedList(*args, **kargs)

Subclass list to make setitem enforce strict typing of members of the list.

Options()

Dead simple class to allow access to package options.

Folders pacakge - Collections Classes

Main Classes

Stoner.Folders Module

Stoner.Folders : Classes for working collections of Data files.

The core classes provides a means to access them as an ordered collection or as a mapping.

Classes

DataFolder(*args, **kargs)

Provide an interface to manipulating lots of data files stored within a directory structure on disc.

PlotFolder(*args, **kargs)

A Stoner.folders.BaseFolder that knows how to ploth its underlying data files.

Class Inheritance Diagram
digraph inheritance4d7d1f0691 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "MutableSequence" -> "BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "DataFolder" [URL="classes/Stoner.Folders.DataFolder.html#Stoner.Folders.DataFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provide an interface to manipulating lots of data files stored within a directory structure on disc."]; "DataMethodsMixin" -> "DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DiskBasedFolderMixin" -> "DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseFolder" -> "DataFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DataMethodsMixin" [URL="classes/Stoner.folders.mixins.DataMethodsMixin.html#Stoner.folders.mixins.DataMethodsMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Methods for working with :py:class:`Stner.Data` in py:class:`Stoner.DataFolder`s."]; "DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "Sequence" -> "MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PlotFolder" [URL="classes/Stoner.Folders.PlotFolder.html#Stoner.Folders.PlotFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A :py:class:`Stoner.folders.BaseFolder` that knows how to ploth its underlying data files."]; "PlotMethodsMixin" -> "PlotFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DataFolder" -> "PlotFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PlotMethodsMixin" [URL="classes/Stoner.folders.mixins.PlotMethodsMixin.html#Stoner.folders.mixins.PlotMethodsMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin for :py:class:`Stoner.folders.core.BaseFolder` with extra methods for plotting lots of files."]; "Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Iterable" -> "Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "Reversible" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Folders Package and Submodules

Stoner.folders Package

Core support for working with collections of files in the Stoner.DataFolder.

Classes

DataFolder(*args, **kargs)

Provide an interface to manipulating lots of data files stored within a directory structure on disc.

PlotFolder(*args, **kargs)

A Stoner.folders.BaseFolder that knows how to ploth its underlying data files.

Stoner.folders.core Module

Provide the base classes and functions for the Stoner.DataFolder class.

Classes

BaseFolder(*args, **kargs)

A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself.

Stoner.folders.mixins Module

mixin classes for Stoner.folders.core.baseFoler.

Classes

DiskBasedFolderMixin(*args, **kargs)

A Mixin class that implements reading metadataObjects from disc.

DataMethodsMixin()

Methods for working with Stner.Data in py:class:`Stoner.DataFolder`s.

PlotMethodsMixin()

A Mixin for Stoner.folders.core.BaseFolder with extra methods for plotting lots of files.

Stoner.folders.each Module

Classes and support functions for the Stoner.DataFolder.each.magic attribute.

Classes

Item(folder)

Provides a proxy object for accessing methods on the inividual members of a Folder.

Class Inheritance Diagram
digraph inheritance8ce0dba669 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Item" [URL="classes/Stoner.folders.each.Item.html#Stoner.folders.each.Item",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provides a proxy object for accessing methods on the inividual members of a Folder."]; }

Stoner.folders.metadata Module

Provides classes and functions to support the Stoner.DataFolder.metadata magic attribute.

Classes

MetadataProxy(folder)

Provide methods to interact with a whole collection of metadataObjects' metadata.

Class Inheritance Diagram
digraph inheritance6b50f93a1e { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Mapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mapping is a generic container for associating key/value"]; "Collection" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MetadataProxy" [URL="classes/Stoner.folders.metadata.MetadataProxy.html#Stoner.folders.metadata.MetadataProxy",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provide methods to interact with a whole collection of metadataObjects' metadata."]; "MutableMapping" -> "MetadataProxy" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MutableMapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A MutableMapping is a generic container for associating"]; "Mapping" -> "MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Image Subpackage

Main Image Classes

Stoner.Image Package

The Stoner.Image package provides a means to carry out image processing functions in a smilar way that Stoner.Core and Stoner.Data and Stoner.DataFolder do. The Stomner.Image.core module contains the key classes for achieving this.

Classes

ImageArray(*args, **kargs)

A numpy array like class with a metadata parameter and pass through to skimage methods.

ImageFile(*args)

An Image file type that is analogous to Stoner.Data.

ImageFolder(*args, **kargs)

Folder object for images.

ImageStack(*args, **kargs)

An alternative implementation of an image stack based on BaseFolder.

KerrArray(*args, **kargs)

A subclass for Kerr microscopy specific image functions.

KerrStack(*args, **kargs)

Represent a stack of Kerr images.

MaskStack(*args, **kargs)

Represent a set of masks for Kerr images.

Class Inheritance Diagram
digraph inheritance7eb37f3103 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "MutableSequence" -> "BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "ImageArray" [URL="classes/Stoner.Image.ImageArray.html#Stoner.Image.ImageArray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A numpy array like class with a metadata parameter and pass through to skimage methods."]; "MaskedArray" -> "ImageArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "metadataObject" -> "ImageArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFile" [URL="classes/Stoner.Image.ImageFile.html#Stoner.Image.ImageFile",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An Image file type that is analogous to :py:class:`Stoner.Data`."]; "metadataObject" -> "ImageFile" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFolder" [URL="classes/Stoner.Image.folders.ImageFolder.html#Stoner.Image.folders.ImageFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Folder object for images."]; "ImageFolderMixin" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DiskBasedFolderMixin" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseFolder" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFolderMixin" [URL="classes/Stoner.Image.folders.ImageFolderMixin.html#Stoner.Image.folders.ImageFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to provide a folder object for images."]; "ImageStack" [URL="classes/Stoner.Image.stack.ImageStack.html#Stoner.Image.stack.ImageStack",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An alternative implementation of an image stack based on BaseFolder."]; "StackAnalysisMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStackMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFolderMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DiskBasedFolderMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseFolder" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStackMixin" [URL="classes/Stoner.Image.stack.ImageStackMixin.html#Stoner.Image.stack.ImageStackMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Implement an interface for a BaseFolder to store images in a 3D numpy array for faster access."]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "KerrArray" [URL="classes/Stoner.Image.kerr.KerrArray.html#Stoner.Image.kerr.KerrArray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A subclass for Kerr microscopy specific image functions."]; "ImageArray" -> "KerrArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "KerrStack" [URL="classes/Stoner.Image.kerr.KerrStack.html#Stoner.Image.kerr.KerrStack",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represent a stack of Kerr images."]; "KerrStackMixin" -> "KerrStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStack" -> "KerrStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "KerrStackMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A mixin for :py:class:`ImageStack` that adds some functionality particular to Kerr images."]; "Mapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mapping is a generic container for associating key/value"]; "Collection" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MaskStack" [URL="classes/Stoner.Image.kerr.MaskStack.html#Stoner.Image.kerr.MaskStack",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represent a set of masks for Kerr images."]; "MaskStackMixin" -> "MaskStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "KerrStackMixin" -> "MaskStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStack" -> "MaskStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MaskStackMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A Mixin for :py:class:`Stoner.Image.ImageStack` but made for stacks of boolean or binary images."]; "MaskedArray" [URL="https://numpy.org/doc/stable/reference/maskedarray.baseclass.html#numpy.ma.MaskedArray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An array class with possibly masked values."]; "ndarray" -> "MaskedArray" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MutableMapping" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableMapping",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A MutableMapping is a generic container for associating"]; "Mapping" -> "MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "Sequence" -> "MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Iterable" -> "Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "Reversible" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "StackAnalysisMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Add some analysis capability to ImageStack."]; "metadataObject" [URL="classes/Stoner.core.base.metadataObject.html#Stoner.core.base.metadataObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represent some sort of object that has metadata stored in a :py:class:`Stoner.Core.TypeHintedDict` object."]; "MutableMapping" -> "metadataObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ndarray" [URL="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="ndarray(shape, dtype=float, buffer=None, offset=0,"]; }

Stoner.Image.folders Module

Classes

ImageFolderMixin()

Mixin to provide a folder object for images.

ImageFolder(*args, **kargs)

Folder object for images.

Class Inheritance Diagram
digraph inheritance910667085f { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "MutableSequence" -> "BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "ImageFolder" [URL="classes/Stoner.Image.folders.ImageFolder.html#Stoner.Image.folders.ImageFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Folder object for images."]; "ImageFolderMixin" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DiskBasedFolderMixin" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseFolder" -> "ImageFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFolderMixin" [URL="classes/Stoner.Image.folders.ImageFolderMixin.html#Stoner.Image.folders.ImageFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to provide a folder object for images."]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "Sequence" -> "MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Iterable" -> "Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "Reversible" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Stoner.Image.stack Module

Classes

ImageStackMixin(*args, **kargs)

Implement an interface for a BaseFolder to store images in a 3D numpy array for faster access.

ImageStack(*args, **kargs)

An alternative implementation of an image stack based on BaseFolder.

ImageStack(*args, **kargs)

An alternative implementation of an image stack based on BaseFolder.

Class Inheritance Diagram
digraph inheritance14c469e509 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "BaseFolder" [URL="classes/Stoner.folders.core.BaseFolder.html#Stoner.folders.core.BaseFolder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for objectFolders that supports both a sequence of objects and a mapping of instances of itself."]; "MutableSequence" -> "BaseFolder" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Collection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sized" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Collection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Container",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "DiskBasedFolderMixin" [URL="classes/Stoner.folders.mixins.DiskBasedFolderMixin.html#Stoner.folders.mixins.DiskBasedFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Mixin class that implements reading metadataObjects from disc."]; "ImageFolderMixin" [URL="classes/Stoner.Image.folders.ImageFolderMixin.html#Stoner.Image.folders.ImageFolderMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin to provide a folder object for images."]; "ImageStack" [URL="classes/Stoner.Image.stack.ImageStack.html#Stoner.Image.stack.ImageStack",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An alternative implementation of an image stack based on BaseFolder."]; "StackAnalysisMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStackMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageFolderMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DiskBasedFolderMixin" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseFolder" -> "ImageStack" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ImageStackMixin" [URL="classes/Stoner.Image.stack.ImageStackMixin.html#Stoner.Image.stack.ImageStackMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Implement an interface for a BaseFolder to store images in a 3D numpy array for faster access."]; "Iterable" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "MutableSequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-write sequence."]; "Sequence" -> "MutableSequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Reversible" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Reversible",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Iterable" -> "Reversible" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sequence" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="All the operations on a read-only sequence."]; "Reversible" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Collection" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [URL="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sized",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "StackAnalysisMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Add some analysis capability to ImageStack."]; }

Stoner.Image.attrs Module

Classes

DrawProxy(*args, **kargs)

Provides a wrapper around skimage.draw to allow easy drawing of objects onto images.

MaskProxy(*args)

Provides a wrapper to support manipulating the image mask easily.

Class Inheritance Diagram
digraph inheritance3ec20501c0 { bgcolor=transparent; fontsize=14; rankdir=TB; ratio=compress; size="6.0, 8.0"; "DrawProxy" [URL="classes/Stoner.Image.attrs.DrawProxy.html#Stoner.Image.attrs.DrawProxy",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provides a wrapper around :py:mod:`skimage.draw` to allow easy drawing of objects onto images."]; "MaskProxy" [URL="classes/Stoner.Image.attrs.MaskProxy.html#Stoner.Image.attrs.MaskProxy",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Provides a wrapper to support manipulating the image mask easily."]; }

Attocube SPM Scans

Stoner.formats.attocube.AttocubeScan(*args, ...)

An ImageStack subclass that can load scans from the AttocubeScan SPM System.

Additional Image Functions

Stoner.Image.imagefuncs Module

Functions

adjust_contrast(im[, lims, percent])

Rescale the intensity of the image.

align(im, ref[, method])

Use one of a variety of algroithms to align two images.

convert(image, dtype[, force_copy, uniform, ...])

Convert an image to the requested data-type.

correct_drift(im, ref, **kargs)

Align images to correct for image drift.

subtract_image(im, background[, contrast, ...])

Subtract a background image from the ImageArray.

fft(im[, shift, phase, remove_dc, gaussian, ...])

Perform a 2d fft of the image and shift the result to get zero frequency in the centre.

filter_image(im[, sigma])

Alias for skimage.filters.gaussian.

gridimage(im[, points, xi, method, ...])

Use scipy.interpolate.griddata() to shift the image to a regular grid of coordinates.

hist(im, *args, **kargs)

Pass through to matplotlib.pyplot.hist() function.

imshow(im, **kwargs)

Quickly plot of image.

level_image(im[, poly_vert, poly_horiz, ...])

Subtract a polynomial background from image.

normalise(im[, scale, sample, limits, ...])

Norm alise the data to a fixed scale.

profile_line(img[, src, dst, linewidth, ...])

Wrap sckit-image method of the same name to get a line_profile.

quantize(im, output[, levels])

Quantise the image data into fixed levels given by a mapping.

radial_coordinates(im[, centre, pixel_size, ...])

Rerurn a map of the radial coordinates of an image from a given centre, with adjustments for pixel size.

radial_profile(im[, angle, r, centre, ...])

Extract a radial profile line from an image.

remove_outliers(im[, percentiles, replace])

Find values of the data that are beyond a percentile of the overall distribution and replace them.

rotate(im, angle[, resize, center, order, ...])

Rotate image by a certain angle around its center.

translate(im, translation[, add_metadata, ...])

Translate the image.

translate_limits(im, translation[, reverse])

Find the limits of an image after a translation.

plot_histogram(im[, bins])

Plot the histogram and cumulative distribution for the image.

threshold_minmax(im[, threshmin, threshmax])

Return a boolean array which is thresholded between threshmin and threshmax.

do_nothing(self)

Nulop function for testing the integration into ImageArray.

denoise(im[, weight])

Rename the skimage restore function.

Stoner.Image.util Module

Code adapted from skimage module.

Functions

sign_loss(dtypeobj_in, dtypeobj)

Warn over loss of sign information when converting image.

prec_loss(dtypeobj_in, dtypeobj)

Warn over precision loss when converting image.

_dtype(itemsize, *dtypes)

Return first of dtypes with itemsize greater than `itemsize.

_dtype2(kind, bits[, itemsize])

Return dtype of kind that can store a bits wide unsigned int.

Kerr Image Handling

Stoner.Image.kerr Module

Classes

KerrArray(*args, **kargs)

A subclass for Kerr microscopy specific image functions.

KerrStack(*args, **kargs)

Represent a stack of Kerr images.

MaskStack(*args, **kargs)

Represent a set of masks for Kerr images.