-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to latest holoviews #688
base: master
Are you sure you want to change the base?
Changes from all commits
a64c55e
b2217c5
4e19854
418c165
f472875
b27c15a
502fe9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
+13 −8 | featuremapper/__init__.py | |
+150 −2 | featuremapper/analysis/__init__.py | |
+24 −12 | featuremapper/analysis/hypercolumns.py | |
+1 −2 | featuremapper/analysis/raster.py | |
+2 −5 | featuremapper/analysis/spatialtuning.py | |
+647 −0 | featuremapper/collector.py | |
+14 −23 | featuremapper/command.py | |
+15 −5 | featuremapper/features.py | |
+7 −3 | setup.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,6 @@ | |
|
||
import os | ||
import param | ||
import imagen | ||
|
||
|
||
def version_int(v): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,13 @@ def __lt__(self, other): | |
|
||
|
||
def __eq__(self, other): | ||
return self.sort_precedence == other.sort_precedence | ||
|
||
try: | ||
return self.sort_precedence == other.sort_precedence | ||
except Exception as e: | ||
# Change in holoviews | ||
if type(other) == str: | ||
return False | ||
raise e | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain the motivation for this change? When will a Specification ever be compared to a string? |
||
|
||
def __init__(self, object_type): | ||
self._object_type = object_type | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import unittest | ||
import numpy | ||
|
||
# Need to load TkAgg before any calls to pyplot in the imports | ||
import matplotlib | ||
matplotlib.use("TkAgg") | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem correct; tests cannot assume that Tk is available in that run. |
||
from topo.base.simulation import Simulation | ||
from topo.base.boundingregion import BoundingBox | ||
from topo.base.cf import CFIter,ResizableCFProjection,CFSheet | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh, seeing anyone change this code just raises the hairs on the back of my neck! There have been so, so many issues over the years from Matplotlib choosing the wrong backend, that I am very reluctant ever to change this code. Are you certain that when used in batch mode (no Tk), it still works?