Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Index Issue #35

Merged
merged 3 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python/app/g2panel
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class MainWindow(QtWidgets.QMainWindow):
self.rcv = rs.Receiver(args[0].receiver_endpoint)
self.rcv.udp_source = f"{self.det.udp_dstip}:{self.det.udp_dstport}"

self.rcv.fpath = Path("/home/l_msdetect/erik/tmp/g2")
#Getting current directory to save the output file
directory=os.getcwd()
self.rcv.fpath = Path(directory)
preview_endpoint = args[0].receiver_endpoint.rsplit(':', 1)[0]+':4547'
self.zmq_rcv = rs.PreviewReceiver(preview_endpoint, timeout_ms=100)
self.zmq_rcv.start()
Expand Down Expand Up @@ -318,6 +320,8 @@ class MainWindow(QtWidgets.QMainWindow):
self.stopButton.hide()
#Showing start button to start new acquistion after completing one acquistion
self.startButton.show()
if self.yesRadioButton.isChecked():
self.indexSpinBox.stepUp()
self.last_progress = progress_d
self.update_status()

Expand All @@ -339,6 +343,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.rcv.start()
time.sleep(0.1)
self.det.start()


#Stop the process
def stopProcess(self):
Expand Down
2 changes: 1 addition & 1 deletion python/app/g2panel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@
</font>
</property>
<property name="text">
<string>Refresh Rate :</string>
<string>Stream Nth:</string>
</property>
</widget>
<widget class="QLineEdit" name="xMinLineEdit">
Expand Down