Fixed stupid mistake when parsing observation-dictss
This commit is contained in:
parent
361b118593
commit
291c9c6320
@ -22,7 +22,7 @@ def parseObs(obsConf):
|
|||||||
|
|
||||||
if obsConf['type'] == 'State':
|
if obsConf['type'] == 'State':
|
||||||
conf = {k: v for k, v in obsConf.items() if k not in ['type']}
|
conf = {k: v for k, v in obsConf.items() if k not in ['type']}
|
||||||
return observables.StateObservable(conf)
|
return observables.StateObservable(**conf)
|
||||||
elif obsConf['type'] == 'Compass':
|
elif obsConf['type'] == 'Compass':
|
||||||
conf = {k: v for k, v in obsConf.items() if k not in ['type']}
|
conf = {k: v for k, v in obsConf.items() if k not in ['type']}
|
||||||
return observables.CompassObservable(**conf)
|
return observables.CompassObservable(**conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user