Merged with trunk
[hooke.git] / hooke / plugin / curvetools.py
similarity index 89%
rename from curvetools.py
rename to hooke/plugin/curvetools.py
index 7c16be9c023e6aeb50b85a7fe95bb4b288ac10ea..1060ce52b572bacabe8e9466cef462e8c58332cc 100755 (executable)
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
-from libhooke import WX_GOOD, ClickedPoint
+from ..libhooke import WX_GOOD, ClickedPoint
+
 import wxversion
 wxversion.select(WX_GOOD)
 from wx import PostEvent
@@ -12,17 +13,6 @@ import time
 
 class curvetoolsCommands:
 
-      def print_prec(self, arr, prec):
-         try:
-           nparr=np.array(arr)
-           np.set_printoptions(precision=prec)
-          #we remove the parentesis if the array is longer that 1
-          if len(nparr)>1:
-            strvals=str(nparr)[1:-1]
-           return strvals
-         except:
-           return "Error in the array."
-
       def fit_interval_nm(self,start_index,plot,nm,backwards):
          '''
          Calculates the number of points to fit, given a fit interval in nm