API

Contents

API#

Core Data#

glue.core.component Module#

Classes#

Component(data[, units])

Stores the actual, numerical information for a particular quantity

DerivedComponent(data, link[, units])

A component which derives its data from a function.

CategoricalComponent(categorical_data[, ...])

Container for categorical data.

CoordinateComponent(data, axis[, world])

Components associated with pixel or world coordinates

DateTimeComponent(data[, units])

A component representing a date/time.

ExtendedComponent(data, center_comp_ids[, units])

A data component representing an extent or a region.

glue.core.component_id Module#

Classes#

ComponentID(label[, parent])

References a glue.core.component.Component object within a Data object.

PixelComponentID(axis, label[, parent])

The ID of a component which is a pixel position in the data - this allows us to make assumptions in certain places.

ComponentIDDict(data, **kwargs)

ComponentIDList([iterable])

glue.core.coordinates Module#

Functions#

coordinates_from_header(header[, hdulist])

Convert a FITS header into a glue Coordinates object.

coordinates_from_wcs(wcs)

Convert an Astropy WCS object into a glue Coordinates object.

header_from_string(string)

Convert a string to a FITS header.

Classes#

Coordinates([n_dim, pixel_n_dim, world_n_dim])

Base class for coordinate transformation

IdentityCoordinates([n_dim])

AffineCoordinates(matrix[, units, labels])

Coordinates determined via an affine transformation represented by an augmented matrix of shape N+1 x N+1 matrix, where N is the number of pixel and world coordinates.

glue.core.data Module#

Classes#

Data([label, coords])

The basic data container in Glue.

BaseCartesianData([coords])

Base class for any glue data object which indicates which methods should be provided at a minimum.

BaseData()

Base class for any glue data object which indicates which methods should be provided at a minimum.

glue.core.data_collection Module#

Classes#

DataCollection([data])

The top-level object for interacting with datasets in Glue.

glue.core.hub Module#

Classes#

Hub(*args)

The hub manages communication between subscribers.

HubListener()

The base class for any object that subscribes to hub messages.

glue.core.subset Module#

Functions#

combine_multiple(subsets, operator)

roi_to_subset_state(roi[, x_att, y_att, ...])

Given a 2D ROI and attributes on the x and y axis, determine the corresponding subset state.

Classes#

Subset(data, **kwargs)

Base class to handle subsets of data.

SubsetState()

The base class for all subset states.

RoiSubsetStateNd([atts, roi, pretransform])

A subset defined as the set of points in N dimensions that lie inside a region of interest (ROI).

RoiSubsetState([xatt, yatt, roi, pretransform])

A subset defined as the set of points in two dimensions that lie inside a region of interest (ROI).

CategoricalROISubsetState([att, roi])

A subset defined as the set of values for a categorical data attribute that fall inside a categorical region of interest (ROI).

RangeSubsetState(lo, hi[, att])

A subset defined as the set of values inside a range.

MultiRangeSubsetState(pairs[, att])

A subset state defined by multiple discontinuous ranges

CompositeSubsetState(state1[, state2])

The base class for combinations of subset states.

OrState(state1[, state2])

An 'or' logical combination of subset states.

AndState(state1[, state2])

An 'and' logical combination of subset states.

XorState(state1[, state2])

An 'exclusive or' logical combination of subset states.

InvertState(state1[, state2])

An inverted subset state.

MaskSubsetState(mask, cids)

A subset defined by a boolean mask.

CategorySubsetState(att, categories)

A subset defined by the set of categorical values that are equal to a set of categories.

ElementSubsetState([indices, data])

A subset defined by a set of indices to apply to the data.

InequalitySubsetState(left, right, operator)

A subset defined by a mathematical comparison of a attribute values to a reference value or attribute values.

CategoricalMultiRangeSubsetState(ranges, ...)

A subset state defined by two attributes where one attribute is categorical and the other is numerical, and where for each category, there are multiple possible subset ranges.

CategoricalROISubsetState2D(categories, ...)

A subset defined as the set of values for two categorical data attributes that fall inside a categorical region of interest (ROI).

SliceSubsetState(reference_data, slices)

A subset defined by a set of array slices.

MultiOrState(states)

A state for many states to be combined together with an 'or' operation.

glue.core.subset_group Module#

A SubsetGroup unites a group of Subset instances together with a consistent state, label, and style.

While subsets are internally associated with particular datasets, it’s confusing for the user to juggle multiple similar or identical subsets, applied to different datasets. Because of this, the GUI manages SubsetGroups, and presents each group to the user as a single entity. The individual subsets are held in-sync by the SubsetGroup.

Client code should only create Subset Groups via glue.core.data_collection.DataCollection.new_subset_group(). It should not call add_subset() or new_subset() directly

Classes#

GroupedSubset(data, group)

A member of a SubsetGroup, whose internal representation is shared with other group members

SubsetGroup([label, subset_state])

Create a new empty SubsetGroup

glue.core.roi Module#

Classes#

Roi()

A geometrical 2D region of interest.

RectangularROI([xmin, xmax, ymin, ymax, theta])

A 2D rectangular region of interest.

CircularROI([xc, yc, radius])

A 2D circular region of interest.

CircularAnnulusROI([xc, yc, inner_radius, ...])

A 2D circular annulus region of interest.

PolygonalROI([vx, vy])

A class to define 2D polygonal regions of interest.

AbstractMplRoi(axes[, roi, data_space])

Base class for objects which use Matplotlib user events to edit/display ROIs.

MplRectangularROI(axes[, data_space])

Matplotlib ROI for rectangular selections

MplCircularROI(axes[, data_space])

Matplotlib ROI for circular selections

MplPolygonalROI(axes[, roi, data_space])

Matplotlib ROI for polygon selections

MplXRangeROI(axes[, data_space])

Matplotlib ROI for x range selections

MplYRangeROI(axes[, data_space])

Matplotlib ROI for y range selections

XRangeROI([min, max])

RangeROI(orientation[, min, max])

A region of interest representing all points within a range in either x or y.

YRangeROI([min, max])

VertexROIBase([vx, vy])

Class representing a set of vertices e.g.

CategoricalROI([categories])

A ROI abstraction to represent selections of categorical data.

EllipticalROI([xc, yc, radius_x, radius_y, ...])

A 2D elliptical region of interest with semimajor/minor axes radius_[xy].

glue.core.data_factories Package#

Functions#

aastex_factory(file, **kwargs)

astropy_tabular_data(*args, **kwargs)

Build a data set from a table.

auto_data(filename, *args, **kwargs)

Attempt to automatically construct a data object

casalike_cube(filename, **kwargs)

This provides special support for 4D CASA FITS - like cubes, which have 2 spatial axes, a spectral axis, and a stokes axis in that order.

cds_factory(file, **kwargs)

daophot_factory(file, **kwargs)

data_label(path)

Convert a file path into a data label, by stripping out slashes, file extensions, etc.

find_factory(filename, **kwargs)

fits_reader(source[, auto_merge, ...])

Read in all extensions from a FITS file.

has_extension(exts)

A simple default filetype identifier function

hdf5_reader(filename[, auto_merge, memmap])

Read in all datasets from an HDF5 file

img_data(file_name)

Load common image files into a Glue data object

ipac_factory(file, **kwargs)

is_casalike(filename, **kwargs)

Check if a FITS file is a CASA like cube, with (P, P, V, Stokes) layout

is_fits(filename)

is_hdf5(filename)

is_npy_npz(filename)

The first bytes are x93NUMPY (for npy) or PKx03x04 (for npz)

latex_factory(file, **kwargs)

load_data(path[, factory])

Use a factory to load a file and assign a label.

npy_npz_reader(filename[, format, auto_merge])

Read in a Numpy structured array saved to a .npy or .npz file.

pandas_read_table(path, **kwargs)

A factory for reading tabular data using pandas.

sextractor_factory(file, **kwargs)

tabular_data(path, **kwargs)

A factory for reading ASCII table data using glue.core.data_factories.astropy_tabular_data() or pandas.read_table(), tried in sequence.

Classes#

FileWatcher(path, callback[, poll_interval])

Watch a path for modifications, and perform an action on change

LoadLog(path, factory, kwargs)

This class attaches some metadata to data created from load_data, so that the data can be re-constructed when loading saved state.

glue.core.fitters Module#

Glue’s fitting classes are designed to be easily subclassed for performing custom model fitting in Glue.

Classes#

BaseFitter1D(**params)

Base class for 1D fitters.

PolynomialFitter(**params)

A polynomial model.

AstropyFitter1D(**params)

A base class for wrapping astropy.modeling.

SimpleAstropyGaussianFitter(**params)

Gaussian fitter using astropy.modeling.

BasicGaussianFitter(**params)

Fallback Gaussian fitter, for astropy < 0.3.

glue.core.state_objects Module#

Classes#

State(**kwargs)

A class to represent the state of a UI element.

StateAttributeCacheHelper(state, attribute)

Generic class to help with caching values on a per-attribute basis

StateAttributeLimitsHelper(state, attribute)

This class is a helper for attribute-dependent min/max level values.

StateAttributeSingleValueHelper(state, ...)

StateAttributeHistogramHelper(state, attribute)

glue.core.exceptions Module#

Classes#

IncompatibleAttribute

IncompatibleDataException

InvalidMessage

InvalidSubscriber

UndefinedROI

glue.core.session Module#

Classes#

Session([application, data_collection, ...])

User Interface#

glue.viewers.common.viewer Module#

Classes#

BaseViewer(session)

The base class for all viewers.

Viewer(session[, state])

A viewer class that uses a state class to represent the overall viewer state, and uses layer artists and state classes to handle each dataset and subset in the data viewer.

glue.viewers.matplotlib.state Module#

Classes#

DeferredDrawSelectionCallbackProperty([...])

A callback property where drawing is deferred until after notify has called all callback functions.

DeferredDrawCallbackProperty([default, ...])

A callback property where drawing is deferred until after notify has called all callback functions.

MatplotlibDataViewerState(*args, **kwargs)

A base class that includes common attributes for viewers based on Matplotlib.

MatplotlibLayerState([viewer_state])

A base class that includes common attributes for all layers in viewers based on Matplotlib.

glue.viewers.matplotlib.layer_artist Module#

Classes#

MatplotlibLayerArtist(axes, viewer_state[, ...])

Create a new LayerArtist

glue.core.layer_artist Module#

LayerArtist classes handle the visualization of an individual subset or dataset.

Visualization clients in Glue typically compose visualizations by stacking visualizations of several datasets and subsets on top of each other. They do this by creating and managing a collection of LayerArtists, one for each Data or Subset to view.

LayerArtists contain the bulk of the logic for actually rendering things

Classes#

LayerArtistBase(layer)

Create a new LayerArtist

LayerArtistContainer()

A collection of LayerArtists

glue.viewers.common.state Module#

Classes#

ViewerState(**kwargs)

A base class for all viewer states.

LayerState([viewer_state])

A base class for all layer states.

glue.viewers.common.layer_artist Module#

Classes#

LayerArtist(viewer_state[, layer_state, layer])

Create a new LayerArtist

glue.viewers.common.tool Module#

Classes#

Tool([viewer])

The base class for all toolbar tools.

CheckableTool([viewer])

A tool that is checkable.

DropdownTool(*args, **kwargs)

A base class for all tools that show a drop-down menu.

SimpleToolMenu(*args, **kwargs)

A base class for tools that have no action it themselves but show a dropdown of other tools.

glue.viewers.matplotlib.mouse_mode Module#

MouseModes define various mouse gestures.

MouseModes are generally activated and deactivated by toolbar buttons, although not necessarily so. The toolbar maintains a list of MouseModes from the visualization it is assigned to, and sees to it that only one MouseMode is active at a time.

Each MouseMode appears as an Icon in the toolbar. Classes can assign methods to the press_callback, move_callback, and release_callback methods of each Mouse Mode, to implement custom functionality

The basic usage pattern is thus:
  • visualization object instantiates the MouseModes it wants

  • each of these is passed to the add_tool method of the toolbar

  • visualization object optionally attaches methods to the 3 _callback methods in a MouseMode, for additional behavior

Classes#

MouseMode(viewer[, press_callback, ...])

The base class for all MouseModes.

glue.viewers.matplotlib.toolbar_mode Module#

ToolbarModes are CheckableTools that enable various MouseModes.

The toolbar maintains a list of MouseModes from the visualization it is assigned to, and sees to it that only one MouseMode is active at a time.

Each ToolbarMode appears as an Icon in the toolbar. Classes can assign methods to the press_callback, move_callback, and release_callback methods of each Mouse Mode, to implement custom functionality

The basic usage pattern is thus:
  • visualization object instantiates the MouseModes it wants

  • each of these is passed to the add_tool method of the toolbar

  • visualization object optionally attaches methods to the 3 _callback methods in a MouseMode, for additional behavior

All the mouse modes and tools in this file are Matplotlib-specific.

Classes#

ToolbarModeBase(viewer, **kwargs)

All ToolbarModes are both MouseModes and CheckableTools

RoiModeBase(viewer, **kwargs)

Base class for defining ROIs.

RoiMode(viewer, **kwargs)

Define Roi Modes via click+drag events.

PersistentRoiMode(viewer, **kwargs)

Same functionality as RoiMode, but the Roi is never finalized, and remains rendered after mouse gestures

ClickRoiMode(viewer, **kwargs)

Generate ROIs using clicks and click+drags.

RectangleMode(viewer, **kwargs)

Defines a Rectangular ROI, accessible via the roi() method

PathMode(viewer, **kwargs)

Parameters:

CircleMode(viewer, **kwargs)

Defines a Circular ROI, accessible via the roi() method

PolyMode(viewer, **kwargs)

Defines a Polygonal ROI, accessible via the roi() method

HRangeMode(viewer, **kwargs)

Defines a Range ROI, accessible via the roi() method.

VRangeMode(viewer, **kwargs)

Defines a Range ROI, accessible via the roi() method.

PickMode(viewer, **kwargs)

Defines a PointROI.

glue.viewers.matplotlib.mpl_axes Module#

Functions#

update_appearance_from_settings(axes)

init_mpl([figure, axes, wcs, axes_factory, ...])

glue.viewers.matplotlib.viewer Module#

Classes#

MatplotlibViewerMixin()

SimpleMatplotlibViewer(session[, parent, ...])

glue.viewers.scatter.viewer Module#

Classes#

MatplotlibScatterMixin()

SimpleScatterViewer(*args, **kwargs)

glue.viewers.scatter.state Module#

Classes#

ScatterViewerState(**kwargs)

A state class that includes all the attributes for a scatter viewer.

ScatterLayerState([viewer_state, layer])

A state class that includes all the attributes for layers in a scatter plot.

ScatterRegionLayerState([viewer_state, layer])

A state class that includes all the attributes for layers in a scatter region layer.

glue.viewers.profile.viewer Module#

Classes#

MatplotlibProfileMixin()

SimpleProfileViewer(*args, **kwargs)

glue.viewers.profile.state Module#

Classes#

ProfileViewerState(**kwargs)

A state class that includes all the attributes for a Profile viewer.

ProfileLayerState([layer, viewer_state])

A state class that includes all the attributes for layers in a Profile plot.

glue.viewers.image.viewer Module#

Classes#

MatplotlibImageMixin()

SimpleImageViewer(*args, **kwargs)

glue.viewers.image.state Module#

Classes#

ImageViewerState(**kwargs)

A state class that includes all the attributes for an image viewer.

ImageLayerState([layer, viewer_state])

A state class that includes all the attributes for data layers in an image plot.

ImageSubsetLayerState(*args, **kwargs)

A state class that includes all the attributes for subset layers in an image plot.

AggregateSlice([slice, center, function])

glue.viewers.histogram.viewer Module#

Classes#

MatplotlibHistogramMixin()

SimpleHistogramViewer(*args, **kwargs)

glue.viewers.histogram.state Module#

Classes#

HistogramViewerState(**kwargs)

A state class that includes all the attributes for a histogram viewer.

HistogramLayerState([viewer_state])

A state class that includes all the attributes for layers in a histogram plot.

glue.core.application_base Module#

Classes#

Application([data_collection, session])

glue Package#

Functions#

custom_viewer(name, **kwargs)

Create a custom interactive data viewer.

test([no_optional_skip])

Utilities#

glue.config Module#

Classes#

Registry()

Container to hold groups of objects or settings.

SettingRegistry()

Stores key/value settings that code can use to customize Glue

ExporterRegistry()

Stores functions which can export an application to an output file

ColormapRegistry()

Stores colormaps for the Image Viewer.

DataFactoryRegistry()

Stores data factories.

LinkFunctionRegistry()

Stores functions to convert between quantities

LinkHelperRegistry()

Stores helper objects that compute many ComponentLinks at once

ViewerToolRegistry()

ProfileFitterRegistry()

DictRegistry()

Base class for registries that are based on dictionaries instead of lists of objects.

DataExporterRegistry()

Stores data exporters.

SubsetMaskExporterRegistry()

Stores mask exporters.

SubsetMaskImporterRegistry()

Stores mask importers.

LayerArtistMakerRegistry()

A registry that allows customization of layer artists based on the data and viewer type.

SessionPatchRegistry()

A registry that allows in-place patch of the session file

AutoLinkerRegistry()

Registry for auto-linking functions that given a data collection can suggest links.

DataTranslatorRegistry()

Stores data translators, which are classes that define methods to translate between Data objects and other kinds of data containers.

SubsetDefinitionTranslatorRegistry()

Stores subset state translators, which are classes that define methods to translate between SubsetState objects and other kinds of selection representations.

UnitConverterRegistry()

Stores unit converters, which are classes that can be used to determine conversion between units and find equivalent units to other units.

StretchRegistry(*args, **kwargs)

Stores custom stretches

glue.core.simpleforms Module#

The descriptors in this module are meant to be added to classes, to specify simple user-settable forms. These classes are used to automatically construct GUIs, without having to write GUI code in the form class itself.

Option objects are defined at the class-level. To instances of these classes, an Option behaves like a normal instance attribute.

Classes#

BoolOption([label, default])

A boolean-valued option.

FloatOption([min, max, default, label])

A floating-point option.

IntOption([min, max, default, label])

An integer-valued option.

Option(default, label)

Base class for other options.

glue.core.data_combo_helper Module#

Classes#

ComponentIDComboHelper(state, selection_property)

The purpose of this class is to set up a combo (represented by a SelectionCallbackProperty) showing componentIDs for one or more datasets, and to update these componentIDs if needed, for example if new components are added to a dataset, or if componentIDs are renamed.

ManualDataComboHelper(state, selection_property)

This is a helper for combo boxes that need to show a list of data objects that is manually curated.

DataCollectionComboHelper(state, ...)

This is a helper for combo boxes that need to show a list of data objects that is always in sync with a DataCollection.

ComboHelper(state, selection_property)

Base class for any combo helper represented by a SelectionCallbackProperty.

BaseDataComboHelper(state, selection_property)

This is a base class for helpers for combo boxes that need to show a list of data objects.

glue.core.message Module#

Classes#

Message(sender[, tag])

Base class for messages that the hub handles.

ErrorMessage(sender[, tag])

Used to send general purpose error messages

SubsetMessage(sender[, tag])

A general message issued by a subset.

SubsetCreateMessage(sender[, tag])

A message that a subset issues when its state changes

SubsetUpdateMessage(sender[, attribute, tag])

A message that a subset issues when its state changes.

SubsetDeleteMessage(sender[, tag])

A message that a subset issues when it is deleted

DataMessage(sender[, tag])

The base class for messages that data objects issue

DataAddComponentMessage(sender, component_id)

Create a new message

DataUpdateMessage(sender, attribute[, tag])

Create a new message

DataCollectionMessage(sender[, tag])

Create a new message

DataCollectionActiveChange(sender[, tag])

Create a new message

DataCollectionActiveDataChange(sender[, tag])

Create a new message

DataCollectionAddMessage(sender, data[, tag])

Create a new message

DataCollectionDeleteMessage(sender, data[, tag])

Create a new message

ApplicationClosedMessage(sender[, tag])

A general message issued when Glue application is closed.

DataRemoveComponentMessage(sender, component_id)

Create a new message

LayerArtistEnabledMessage(sender[, tag])

Create a new message

LayerArtistDisabledMessage(sender[, tag])

Create a new message

DataRenameComponentMessage(sender, component_id)

Create a new message

DataReorderComponentMessage(sender, ...[, tag])

Create a new message

LayerArtistVisibilityMessage(sender[, tag])

Create a new message

glue.core.util Module#

Functions#

relim(lo, hi[, log])

split_component_view(arg)

Split the input to data or subset.__getitem__ into its pieces.

join_component_view(component, view)

Pack a ComponentID and optional view into single tuple.

facet_subsets(data_collection, cid[, lo, ...])

Create a series of subsets that partition the values of a particular attribute into several bins

colorize_subsets(subsets, cmap[, lo, hi])

Re-color a list of subsets according to a colormap.

disambiguate(label, taken)

If necessary, add a suffix to label to avoid name conflicts

small_view(data, attribute)

Extract a downsampled view from a dataset, for quick statistical summaries

small_view_array(data)

Same as small_view, except using a numpy array as input

visible_limits(artists, axis)

Determines the data limits for the data in a set of artists.

tick_linker(all_categories, pos, *args)

update_ticks(axes, coord, kinds, is_log, ...)

Changes the axes to have the proper tick formatting based on the type of component.

Classes#

ThetaRadianFormatter([axis_label])

Used to format the theta tick labels in radians

ThetaDegreeFormatter([axis_label])

PolarRadiusFormatter([axis_label])

glue.core.visual Module#

Classes#

VisualAttributes([parent, color, alpha, ...])

This class is used to define visual attributes for any kind of objects.

glue.utils.array Module#

Functions#

unique(array)

Return the unique elements of the array U, as well as the index array I such that U[I] == array

shape_to_string(shape)

On Windows, shape tuples use long ints which results in formatted shapes such as (2L, 3L).

view_shape(shape, view)

Return the shape of a view of an array.

stack_view(shape, *views)

coerce_numeric(arr)

Coerce an array into a numeric array, replacing non-numeric elements with nans.

check_sorted(array)

Return True if the array is sorted, False otherwise.

unbroadcast(array)

Given an array, return a new array that is the smallest subset of the original array that can be re-broadcasted back to the original array.

iterate_chunks(shape[, chunk_shape, n_max])

Given a data shape and a chunk shape (or maximum chunk size), iteratively return slice objects that can be used to slice the array.

combine_slices(slice1, slice2, length)

Given two slices that can be applied to a 1D array and the length of that array, this returns a new slice which is the one that should be applied to the array instead of slice2 if slice1 has already been applied.

format_minimal(values)

Find the shortest float format that can be used to represent all values in an array such that all the string representations are different.

compute_statistic(statistic, data[, mask, ...])

Compute a statistic for the data.

index_lookup(data, items)

Lookup which index in items each data value is equal to

ensure_numerical(values)

broadcast_arrays_minimal(*arrays)

Unbroadcast arrays then broadcast to smallest common shape.

random_views_for_dask_array(array, ...)

Return a list of views to extract random values from a dask array in an efficient way taking into account the chunk layout.

random_indices_for_array(array, n_random_samples)

Return a tuple of arrays that can be used to index the input array to obtain a random sample of values.

Classes#

categorical_ndarray(value[, dtype, copy, ...])

A Numpy array subclass that includes properties to find the categories and unique integer codes for array values.

glue.utils.geometry Module#

Functions#

points_inside_poly(x, y, vx, vy)

Test if coordinates x, y fall inside polygon of vertices vx, vy.

polygon_line_intersections(px, py[, xval, yval])

Find all the segments of intersection between a polygon and an infinite horizontal/vertical line.

floodfill(data, start_coords, threshold)

rotation_matrix_2d(alpha)

Return rotation matrix for angle alpha around origin.

glue.utils.matplotlib Module#

Functions#

all_artists(fig)

Build a set of all Matplotlib artists in a Figure

new_artists(fig, old_artists)

Find the newly-added artists in a figure.

remove_artists(artists)

Remove a collection of matplotlib artists from a scene.

get_extent(view[, transpose])

view_cascade(data, view)

Return a set of views progressively zoomed out of input at roughly constant pixel count.

fast_limits(data, plo, phi)

Quickly estimate percentiles in an array, using a downsampled version.

defer_draw(func)

Decorator that globally defers all Agg canvas draws until function exit.

color2rgb(color)

point_contour(x, y, data)

Calculate the contour that passes through (x,y) in data

datetime64_to_mpl(d)

Convert numpy.datetime64 or an ndarray of those types to Gregorian date as UTC float.

mpl_to_datetime64(dt)

color2hex(color)

glue.utils.misc Module#

Functions#

nonpartial(func, *args, **kwargs)

Like functools.partial, this returns a function which, when called, calls func(*args, **kwargs).

lookup_class(ref)

Look up an object via its module string (e.g., 'glue.core.data.Data')

as_variable_name(x)

Convert a string to a legal python variable name

as_list(x)

file_format(filename)

common_prefix(strings[, exclude_punctuation])

Given a list of strings, find the longest prefix common to all of them

queue_to_list(q)

Get all the values in a queue.Queue object and return a list.

format_choices(options[, index])

Return a string with an error message formatted as:

Classes#

DeferredMethod(method)

This class stubs out a method, and provides a callable interface that logs its calls.

CallbackMixin()

A mixin that provides a utility for attaching callback functions to methods

PropertySetMixin()

An object that provides a set of properties that are meant to encapsulate state information

Pointer(key)

Plugins#

glue.plugins.wcs_autolinking.wcs_autolinking Module#

Functions#

wcs_autolink(data_collection)

Classes#

IncompatibleWCS

WCSLink([data1, data2, cids1, cids2])

A collection of links that link the pixel components of two datasets via WCS transformations.

AffineLink([data1, data2, cids1, cids2, matrix])

OffsetLink([data1, data2, cids1, cids2, offsets])

NoAffineApproximation