merged after getting from uniax
Change-Id: I1049ac1a22fd3013c360dba4eda9e53784ac36a5
This commit is contained in:
parent
762913012b
commit
2c6b42f2aa
@ -125,20 +125,3 @@ class DPM3(HasIodev, Readable):
|
||||
def write_scale_factor(self, value):
|
||||
reply = self.query(self.SCALE, value * 10 ** self.digits)
|
||||
return float(reply) / 10 ** self.digits
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -435,10 +435,12 @@ class SeaModule(Module):
|
||||
elif sub[0] == rpath:
|
||||
result.append(paramdesc)
|
||||
descr['params'] = result
|
||||
for valuedesc in result:
|
||||
if valuedesc['path'] == '':
|
||||
valuedesc['key'] = 'value'
|
||||
break
|
||||
rel0 = '' if rel_paths[0] == '.' else rel_paths[0]
|
||||
if result[0]['path'] == rel0:
|
||||
if issubclass(cls, Readable):
|
||||
result[0]['key'] = 'value'
|
||||
else:
|
||||
result.pop(0)
|
||||
else:
|
||||
logger.error('%s: no value found', name)
|
||||
# logger.info('PARAMS %s %r', name, result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user