Skip to content
Snippets Groups Projects
Commit 644016c0 authored by Roberto Borghes's avatar Roberto Borghes
Browse files

Removed duplicates from proposal and investigation list

parent c2f25450
No related branches found
No related tags found
No related merge requests found
......@@ -396,6 +396,8 @@ class Experiment_Details(PyTango.Device_4Impl):
self.ProposalList = []
for idx in range(len(self.ProposalList)):
self.ProposalList[idx] = self.ProposalList[idx].strip()
# Remove duplicates
self.ProposalList = list(set(self.ProposalList))
#
resp = self.StorageMngrDev.ListInvestigation([self.UserId, self.TAG])
if resp.upper().find("OK:") >= 0:
......@@ -405,6 +407,8 @@ class Experiment_Details(PyTango.Device_4Impl):
self.InvestigationList = []
for idx in range(len(self.InvestigationList)):
self.InvestigationList[idx] = self.InvestigationList[idx].strip()
# Remove duplicates
self.InvestigationList = list(set(self.InvestigationList))
#------------------------------------------------------------------
# Set Active Investigation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment