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

Small fix #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
34 changes: 18 additions & 16 deletions gui/control_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3775,22 +3775,24 @@ def addRequestsToAllSelectedCB(self):
samplesConsidered.add(self.selectedSampleID)
else: # If queue collect is off does not matter how many requests you select only one will be added to current pin
self.selectedSampleID = self.mountedPin_pv.get()
self.selectedSampleRequest = daq_utils.createDefaultRequest(
self.selectedSampleID
)
self.dataPathGB.setFilePrefix_ledit(
str(self.selectedSampleRequest["request_obj"]["file_prefix"])
)
self.dataPathGB.setDataPath_ledit(
str(self.selectedSampleRequest["request_obj"]["directory"])
)
self.EScanDataPathGB.setFilePrefix_ledit(
str(self.selectedSampleRequest["request_obj"]["file_prefix"])
)
self.EScanDataPathGB.setDataPath_ledit(
str(self.selectedSampleRequest["request_obj"]["directory"])
)
self.addSampleRequestCB(selectedSampleID=self.selectedSampleID)
# Only add a request if a sample is actually mounted
if self.selectedSampleID:
self.selectedSampleRequest = daq_utils.createDefaultRequest(
self.selectedSampleID
)
self.dataPathGB.setFilePrefix_ledit(
str(self.selectedSampleRequest["request_obj"]["file_prefix"])
)
self.dataPathGB.setDataPath_ledit(
str(self.selectedSampleRequest["request_obj"]["directory"])
)
self.EScanDataPathGB.setFilePrefix_ledit(
str(self.selectedSampleRequest["request_obj"]["file_prefix"])
)
self.EScanDataPathGB.setDataPath_ledit(
str(self.selectedSampleRequest["request_obj"]["directory"])
)
self.addSampleRequestCB(selectedSampleID=self.selectedSampleID)

self.progressDialog.close()
self.treeChanged_pv.put(1)
Expand Down