02.2026
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user