Source code for glue.core.component_link

import numbers
import operator

from inspect import getfullargspec

import numpy as np

from glue.core.contracts import contract, ContractsMeta
from glue.core.coordinate_helpers import (dependent_axes, default_world_coords,
                                          pixel2world_single_axis,
                                          world2pixel_single_axis)
from glue.core.subset import InequalitySubsetState
from glue.core.util import join_component_view
from glue.utils import unbroadcast, broadcast_to
from glue.logger import logger

__all__ = ['ComponentLink', 'BinaryComponentLink', 'CoordinateComponentLink']


def null(*args):
    return None


OPSYM = {operator.add: '+', operator.sub: '-',
         operator.truediv: '/', operator.mul: '*',
         operator.pow: '**'}