Skip to content

Commit

Permalink
Mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Jan 25, 2019
1 parent 0787d65 commit 4217ba0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qcodes/dataset/sqlite_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,25 +609,25 @@ def _2to3_get_paramspecs(conn: ConnectionPlus,

# first possibility: another parameter depends on this parameter
if layout_id in indeps:
inferred_from = inferred_from.split(', ')
inferred_from_list = inferred_from.split(', ')

paramspec = ParamSpec(name=name, paramtype=paramtype,
label=label, unit=unit,
inferred_from=inferred_from)
inferred_from=inferred_from_list)
paramspecs[layout_id] = paramspec

# second possibility: this parameter depends on another parameter
elif layout_id in deps:

setpoints = dependencies[layout_id]
depends_on = [paramspecs[idp].name for idp in setpoints]
inferred_from = inferred_from.split(', ')
inferred_from_list = inferred_from.split(', ')

paramspec = ParamSpec(name=name,
paramtype=paramtype,
label=label, unit=unit,
depends_on=depends_on,
inferred_from=inferred_from)
inferred_from=inferred_from_list)
paramspecs[layout_id] = paramspec

# third possibility: no dependencies
Expand Down

0 comments on commit 4217ba0

Please sign in to comment.