[hdf-compass] 177/295: Removal of unused code
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.
commit 24797aa9f39419fed4af986261bc48e687156d33
Author: giumas <giumas at yahoo.it>
Date: Thu Oct 22 20:09:57 2015 -0400
Removal of unused code
---
hdf_compass/compass_model/model.py | 25 -------------------------
hdf_compass/compass_viewer/frame.py | 7 -------
2 files changed, 32 deletions(-)
diff --git a/hdf_compass/compass_model/model.py b/hdf_compass/compass_model/model.py
index f5ba4b7..bd50b62 100644
--- a/hdf_compass/compass_model/model.py
+++ b/hdf_compass/compass_model/model.py
@@ -405,31 +405,6 @@ class Image(Node):
""" Image data """
-class Plottable(Node):
- """
- Represents anything that can be plotted to a 2D canvas using Matplotlib.
-
- Unlike the rest of the GUI elements, for this node the viewing experience
- is completely up to you.
-
- Subclasses may be requested to pop up a Matplotlib window, or render their
- contents to a PNG byte string for display or export elsewhere in the GUI.
- """
-
- __metaclass__ = ABCMeta
-
- def show(self):
- """ Pop up a Matplotlib display window """
- raise NotImplementedError
-
- def render(self, width, height):
- """ Render the image as PNG.
-
- Should return a byte string; width and height are in pixels.
- """
- raise NotImplementedError
-
-
class Text(Node):
""" A text. """
diff --git a/hdf_compass/compass_viewer/frame.py b/hdf_compass/compass_viewer/frame.py
index 05216aa..8ce16de 100644
--- a/hdf_compass/compass_viewer/frame.py
+++ b/hdf_compass/compass_viewer/frame.py
@@ -163,13 +163,6 @@ class BaseFrame(wx.Frame):
pipe = "|"
return pipe.join(filter_string)
- # The wxPython wildcard string is a bunch of filter strings pasted together
- # wc_string = [s.file_extensions for s in compass_model.get_stores() if len(s.file_extensions) != 0]
- # print "jlr -- wc_string: " , wc_string
- # wc_string.append({"All Files": ["*"]})
- # wc_string = "|".join([make_filter_string(x) for x in wc_string])
- #wc_string.append("|")
- #wc_string.append(make_filter_string(wc_string))
wc_string = make_filter_string()
dlg = wx.FileDialog(self, "Open Local File", wildcard=wc_string, style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git
More information about the debian-science-commits
mailing list