changing directory name
This commit is contained in:
@ -105,7 +105,8 @@ class BECConnector(ConnectorBase):
|
||||
|
||||
@staticmethod
|
||||
def monitor_update(msg, parent):
|
||||
dev = msg.topic.decode().split(MessageEndpoints._device_readback + "/")[-1].split(":sub")[0]
|
||||
dev = msg.topic.decode().split(
|
||||
MessageEndpoints._device_readback + "/")[-1].split(":sub")[0]
|
||||
msg = BECMessage.DeviceMessage.loads(msg.value)
|
||||
parent.append_device_reading(msg, dev)
|
||||
|
||||
@ -114,6 +115,7 @@ class BECConnector(ConnectorBase):
|
||||
self.storage_device[device_name].append(signals)
|
||||
self.new_monitor_value.emit(device_name)
|
||||
|
||||
|
||||
class DataAccess(QObject):
|
||||
new_mon_value = pyqtSignal(str)
|
||||
used_devices_updated = pyqtSignal(bool)
|
||||
@ -178,23 +180,24 @@ class DataAccess(QObject):
|
||||
def connect_pyqtSignals(self):
|
||||
self.connector.msg_update.connect(self.on_msg_update)
|
||||
|
||||
|
||||
def get_files():
|
||||
|
||||
mypath = "/home/stalbe_j/grum"
|
||||
mypath = "/home/stalbe_j/Documents/grum"
|
||||
return [f for f in listdir(mypath) if isfile(join(mypath, f))]
|
||||
|
||||
|
||||
def plot_recon():
|
||||
files = get_files()
|
||||
recon_files = [file for file in files if file.endswith("h5")]
|
||||
for file in recon_files:
|
||||
print(file)
|
||||
#print keys...
|
||||
|
||||
# i = 1
|
||||
# while True:
|
||||
files = get_files()
|
||||
recon_files = [file for file in files if file.endswith("h5")]
|
||||
for file in recon_files:
|
||||
print(file)
|
||||
# print keys...
|
||||
|
||||
# print("plot_recon")
|
||||
# self.new_plot("recon"+str(i), {'xs':[1*i,2*1,3*1], 'ys':[3*i,4*i,5*i]})
|
||||
# time.sleep(10)
|
||||
# i+=1
|
||||
# i = 1
|
||||
# while True:
|
||||
|
||||
# print("plot_recon")
|
||||
# self.new_plot("recon"+str(i), {'xs':[1*i,2*1,3*1], 'ys':[3*i,4*i,5*i]})
|
||||
# time.sleep(10)
|
||||
# i+=1
|
||||
|
Reference in New Issue
Block a user