Skip to content
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

Issue 172 #187

Merged
merged 1 commit into from
Mar 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion artview/components/display_select_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def closeEvent(self, QCloseEvent):
warnings.warn(
"Reseting SelectRegion fails with following error\n" + error)
self.disconnect()
super(SelectRegion, self).closeEvent(QCloseEvent)
super(DisplaySelectRegion, self).closeEvent(QCloseEvent)

def displayStats(self):
'''Calculate basic statistics of the SelectRegion list.'''
Expand Down
4 changes: 3 additions & 1 deletion artview/components/select_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def resetSelectRegion(self):
'''Clear the SelectRegion lines from plot and reset things.'''
if self.polys:
for poly in self.polys:
for i in xrange(len(poly)):
for i in range(len(poly)):
try:
poly[i].remove()
except:
Expand All @@ -350,6 +350,8 @@ def closeEvent(self, QCloseEvent):
error = traceback.format_exc()
warnings.warn(
"Reseting SelectRegion fails with following error\n" + error)
import warnings
warnings.warn("a waring\n")
self.disconnect()
super(SelectRegion, self).closeEvent(QCloseEvent)

Expand Down
2 changes: 1 addition & 1 deletion artview/modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def manual_unfold_mode():

def manual_filter_mode():
change_mode(
[FileNavigator, RadarDisplay, SelectRegion, ManualFilter],
[FileNavigator, RadarDisplay, SelectRegion, ManualEdit],
[
((0, 'Vradar'), (1, 'Vradar')),
((1, 'VplotAxes'), (2, 'VplotAxes')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from ..core import Component, Variable, common, QtWidgets, QtCore, componentsList


class ManualFilter(Component):
class ManualEdit(Component):
'''
Use of Points to remove data from Radar.
'''
Expand All @@ -34,12 +34,12 @@ class ManualFilter(Component):
def guiStart(self, parent=None):
'''Graphical interface for starting this class.'''
kwargs, independent = \
common._SimplePluginStart("ManualFilter").startDisplay()
common._SimplePluginStart("ManualEdit").startDisplay()
kwargs['parent'] = parent
return self(**kwargs), independent

def __init__(self, Vradar=None, Vpoints=None, Vfield=None,
Vgatefilter=None, name=" ManualFilter", parent=None):
Vgatefilter=None, name=" ManualEdit", parent=None):
'''Initialize the class to create the interface.

Parameters
Expand All @@ -63,7 +63,7 @@ def __init__(self, Vradar=None, Vpoints=None, Vfield=None,
If None, then Qt owns, otherwise associated with parent PyQt
instance.
'''
super(ManualFilter, self).__init__(name=name, parent=parent)
super(ManualEdit, self).__init__(name=name, parent=parent)

if Vradar is None:
self.Vradar = Variable(None)
Expand Down Expand Up @@ -258,4 +258,4 @@ def NewField(self, variable, strong):
self.fieldBox.setCurrentIndex(idx)


_plugins = [ManualFilter]
_plugins = [ManualEdit]