fix: removed matplotlib dependency
This commit is contained in:
parent
ec3a93f96e
commit
b5611d20c8
@ -1,6 +1,5 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from ophyd import Device, Component, EpicsSignal, EpicsSignalRO
|
from ophyd import Component, Device, EpicsSignal, EpicsSignalRO
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
|
|
||||||
|
|
||||||
class SpmBase(Device):
|
class SpmBase(Device):
|
||||||
@ -88,7 +87,7 @@ class SpmSim(SpmBase):
|
|||||||
print(f"Raw signals: R={rnge}\t{s1}\t{s2}\t{s3}\t{s4}")
|
print(f"Raw signals: R={rnge}\t{s1}\t{s2}\t{s3}\t{s4}")
|
||||||
# plt.imshow(beam)
|
# plt.imshow(beam)
|
||||||
# plt.show(block=False)
|
# plt.show(block=False)
|
||||||
plt.pause(0.5)
|
# plt.pause(0.5)
|
||||||
|
|
||||||
|
|
||||||
# Automatically start simulation if directly invoked
|
# Automatically start simulation if directly invoked
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from ophyd import Device, Component, EpicsSignal, EpicsSignalRO
|
from ophyd import Component, Device, EpicsSignal, EpicsSignalRO
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
|
|
||||||
|
|
||||||
class XbpmCsaxsOp(Device):
|
class XbpmCsaxsOp(Device):
|
||||||
@ -118,7 +117,7 @@ class XbpmSim(XbpmBase):
|
|||||||
print(f"Raw signals: R={rnge}\t{s1}\t{s2}\t{s3}\t{s4}")
|
print(f"Raw signals: R={rnge}\t{s1}\t{s2}\t{s3}\t{s4}")
|
||||||
# plt.imshow(beam)
|
# plt.imshow(beam)
|
||||||
# plt.show(block=False)
|
# plt.show(block=False)
|
||||||
plt.pause(0.5)
|
# plt.pause(0.5)
|
||||||
|
|
||||||
|
|
||||||
# Automatically start simulation if directly invoked
|
# Automatically start simulation if directly invoked
|
||||||
|
Loading…
x
Reference in New Issue
Block a user