Ran update_copyright.py, updating all the copyright blurbs and adding AUTHORS.
[hooke.git] / hooke / plugin / generalclamp.py
index 327e5851ed8a063f082ea1f610958a00a1f9041b..54aff5f123c391b113c4f49580f3e24ba703f914 100644 (file)
@@ -1,15 +1,37 @@
-'''
-GENERALCLAMP.py
+# Copyright (C) 2008-2010 Alberto Gomez-Casado
+#                         Marco Brucale
+#                         Massimo Sandal <devicerandom@gmail.com>
+#                         W. Trevor King <wking@drexel.edu>
+#
+# This file is part of Hooke.
+#
+# Hooke is free software: you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation, either
+# version 3 of the License, or (at your option) any later version.
+#
+# Hooke is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Hooke.  If not, see
+# <http://www.gnu.org/licenses/>.
+
+"""Plugin regarding general force clamp measurements
+"""
+
+from hooke.libhooke import WX_GOOD, ClickedPoint
 
-Plugin regarding general force clamp measurements
-'''
-from libhooke import WX_GOOD, ClickedPoint
 import wxversion
-import libhookecurve as lhc
 wxversion.select(WX_GOOD)
 from wx import PostEvent
 
-class generalclampCommands:
+from .. import curve as lhc
+
+
+class generalclampCommands(object):
 
     def plotmanip_clamp(self, plot, current, customvalue=False):
         '''
@@ -182,7 +204,7 @@ class generalclampCommands:
             return
         else:
             print 'Found',len(notflat_list),'potentially interesting curves.'
-            print 'Regenerating Playlist...'
+            print 'Regenerating playlist...'
             self.pointer=0
             self.current_list=notflat_list
             self.current=self.current_list[self.pointer]