introduce BytesIO
rename secop.stringio to secop.io, which includes now also BytesIO and the common base class IOBase + a small fix in error handling Change-Id: I8e305e2c164f4ed131f4b36ef45edd8bd222336d Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/26393 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
@ -28,7 +28,7 @@ from secop.lib import formatStatusBits
|
||||
from secop.modules import Attached, Done, \
|
||||
Drivable, Parameter, Property, Readable
|
||||
from secop.poller import REGULAR, Poller
|
||||
from secop.stringio import HasIodev
|
||||
from secop.io import HasIodev
|
||||
|
||||
Status = Drivable.Status
|
||||
|
||||
@ -53,7 +53,7 @@ scan = IOHandler('scan', 'SCAN?', '%d,%d')
|
||||
STATUS_BIT_LABELS = 'CS_OVL VCM_OVL VMIX_OVL VDIF_OVL R_OVER R_UNDER T_OVER T_UNDER'.split()
|
||||
|
||||
|
||||
class StringIO(secop.stringio.StringIO):
|
||||
class StringIO(secop.io.StringIO):
|
||||
identification = [('*IDN?', 'LSCI,MODEL370,.*')]
|
||||
wait_before = 0.05
|
||||
|
||||
|
@ -43,7 +43,7 @@ from secop.lib.enum import Enum
|
||||
from secop.modules import Attached, Communicator, Done, \
|
||||
Drivable, Parameter, Property, Readable
|
||||
from secop.poller import Poller
|
||||
from secop.stringio import HasIodev
|
||||
from secop.io import HasIodev
|
||||
|
||||
try:
|
||||
import secop_psi.ppmswindows as ppmshw
|
||||
|
Reference in New Issue
Block a user