This commit is contained in:
gobbo_a
2026-02-09 15:06:52 +01:00
parent 4f6a49c538
commit f841fbc0ea
163 changed files with 576 additions and 49654 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ class ImageStats(DeviceBase):
def __init__(self, name, source):
DeviceBase.__init__(self, name)
if isinstance(source, basestring):
self.source = get_context().getClassByName("SfCamera")(source, source)
self.source = Context.getClassByName("SfCamera")(source, source)
self.private_source = True
self.source.initialize()
else:
+1 -1
View File
@@ -41,7 +41,7 @@ class ShellCommand(RegisterBase, RegisterArray):
print self.val
#self.val = cmd
get_context().evalLineBackgroundAsync(cmd).handle(eval_callback())
get_sequencer().evalLineBackgroundAsync(cmd).handle(eval_callback())
except:
err=str(sys.exc_info()[1])
if "Exception:" in err:
+2 -2
View File
@@ -1,7 +1,7 @@
#Interface to CameraTool application
import ch.psi.utils.Convert.toBidimensional as mono_to_bidi
import ch.psi.utils.Convert.toDouble as toDouble
import ch.psi.pshell.utils.Convert.toBidimensional as mono_to_bidi
import ch.psi.pshell.utils.Convert.toDouble as toDouble
import org.apache.commons.math3.linear.Array2DRowRealMatrix as Matrix
class CamToolImage(ReadableMatrix):