From a8fef96bd77de80e341ca0ed788806f2681c466d Mon Sep 17 00:00:00 2001 From: Shekar V Date: Fri, 15 Sep 2023 11:45:48 -0400 Subject: [PATCH] Set datapath during request creation to come from blconfig --- gui/control_main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/control_main.py b/gui/control_main.py index 5bca9905..dbf2dd93 100644 --- a/gui/control_main.py +++ b/gui/control_main.py @@ -3676,7 +3676,7 @@ def editSampleRequestCB(self, singleRequest): singleRequest == 1 ): # a touch kludgy, but I want to be able to edit parameters for multiple requests w/o screwing the data loc info reqObj["file_prefix"] = str(self.dataPathGB.prefix_ledit.text()) - reqObj["basePath"] = str(self.dataPathGB.base_path_ledit.text()) + reqObj["basePath"] = getBlConfig("visitDirectory") reqObj["directory"] = str(self.dataPathGB.dataPath_ledit.text()) reqObj["file_number_start"] = int( self.dataPathGB.file_numstart_ledit.text() @@ -3934,9 +3934,9 @@ def addSampleRequestCB(self, rasterDef=None, selectedSampleID=None): reqObj["file_prefix"] = str( self.dataPathGB.prefix_ledit.text() + "_C" + str(i + 1) ) - reqObj["basePath"] = str(self.dataPathGB.base_path_ledit.text()) + reqObj["basePath"] = getBlConfig("visitDirectory") reqObj["directory"] = ( - str(self.dataPathGB.base_path_ledit.text()) + getBlConfig("visitDirectory") + "/" + str(daq_utils.getVisitName()) + "/" @@ -4060,7 +4060,7 @@ def addSampleRequestCB(self, rasterDef=None, selectedSampleID=None): ) reqObj["resolution"] = float(self.resolution_ledit.text()) reqObj["directory"] = ( - str(self.dataPathGB.base_path_ledit.text()) + getBlConfig("visitDirectory") + "/" + str(daq_utils.getVisitName()) + "/" @@ -4073,7 +4073,7 @@ def addSampleRequestCB(self, rasterDef=None, selectedSampleID=None): + str(samplePositionInContainer + 1) + "/" ) - reqObj["basePath"] = str(self.dataPathGB.base_path_ledit.text()) + reqObj["basePath"] = getBlConfig("visitDirectory") reqObj["file_prefix"] = str(self.dataPathGB.prefix_ledit.text()) reqObj["file_number_start"] = int( self.dataPathGB.file_numstart_ledit.text()