Skip to content

Commit

Permalink
Convert parameters acording to its type
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Nov 17, 2016
1 parent 4732f9a commit 4c6dd05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions numina/dal/dictdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ def search_param_req_tags(self, req, instrument, mode, tags, pipeline):
return content
else:
for prod in mode_list:
pk = prod['name']
pn = prod['name']
pt = prod['tags']
if pk == req.dest and tags_are_valid(pt, tags):
if pn == req.dest and tags_are_valid(pt, tags):
# We have found the result, no more checks
content = StoredParameter(prod['content'])
value = load(req.type, prod['content'])
content = StoredParameter(value)
return content
else:
msg = 'name %s compatible with tags %r not found' % (req.dest, tags)
Expand Down

0 comments on commit 4c6dd05

Please sign in to comment.