Skip to content

Commit

Permalink
Moved color conversion code from optimized to misc (fixed imports)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 1, 2014
1 parent d43b7d0 commit 1555d09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions topo/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,30 @@
and sets the appropriate Topographica-specific hooks.
"""

from topo.analysis.featureresponses import FeatureResponses, FeatureCurves,\
FeatureMaps, ReverseCorrelation, MeasureResponseCommand, pattern_response,\
topo_metadata_fn, StorageHook, get_feature_preference
from featuremapper.command import measure_response

import imagen.colorspaces
import topo.optimized.color

import numpy as np

from dataviews.collector import Reference
from dataviews.options import channels, ChannelOpts
from dataviews.operation import cmap2rgb, operator, chain
from dataviews.testing import IPTestCase

from imagen import Animation
import imagen.colorspaces

from featuremapper.command import Collector, measure_response

import topo
from featuremapper.command import Collector
from topo.base.sheet import Sheet
from topo.analysis.featureresponses import FeatureResponses, FeatureCurves,\
FeatureMaps, ReverseCorrelation, MeasureResponseCommand, pattern_response,\
topo_metadata_fn, StorageHook, get_feature_preference
from topo.base.projection import Projection
from topo.base.sheet import Sheet
from topo.base.sheetview import CFView, CFStack
from topo.misc.ipython import RunProgress
from topo.misc import color

from command import measure_cog

from topo.base.sheetview import CFView, CFStack
from imagen import Animation

class TopoIPTestCase(IPTestCase):

Expand Down Expand Up @@ -186,8 +185,8 @@ def empty_storage_hook(arg):


## Set optimized versions of color conversion functions
imagen.colorspaces.rgb_to_hsv = topo.optimized.color._rgb_to_hsv_array_opt
imagen.colorspaces.hsv_to_rgb = topo.optimized.color._hsv_to_rgb_array_opt
imagen.colorspaces.rgb_to_hsv = color._rgb_to_hsv_array_opt
imagen.colorspaces.hsv_to_rgb = color._hsv_to_rgb_array_opt


# Automatically discover all .py files in this directory.
Expand Down
File renamed without changes.

0 comments on commit 1555d09

Please sign in to comment.