Issue #1332: Update pypies createStorageRecord to not pull in parent group node
Change-Id: Ieb4b45bce2f5c0eca41301eacbd7782b3c310edd Former-commit-id:d2aff4118b
[formerly73c2fa6ed3
[formerly 926250abd96f2b5e30b6a863735a10203491a257]] Former-commit-id:73c2fa6ed3
Former-commit-id:375383a09f
This commit is contained in:
parent
f1cfa9a60d
commit
3778419a78
1 changed files with 3 additions and 1 deletions
|
@ -54,11 +54,13 @@ def createStorageRecord(rawData, ds):
|
||||||
t = typeToClassMap[rawData.dtype.type]
|
t = typeToClassMap[rawData.dtype.type]
|
||||||
inst = t()
|
inst = t()
|
||||||
name = ds.name
|
name = ds.name
|
||||||
|
parentName = '/'
|
||||||
slashIndex = name.rfind('/')
|
slashIndex = name.rfind('/')
|
||||||
if slashIndex > -1:
|
if slashIndex > -1:
|
||||||
|
parentName = name[0:slashIndex]
|
||||||
name = name[slashIndex+1:]
|
name = name[slashIndex+1:]
|
||||||
inst.setName(name)
|
inst.setName(name)
|
||||||
inst.setGroup(ds.parent.name)
|
inst.setGroup(parentName)
|
||||||
inst.putDataObject(rawData)
|
inst.putDataObject(rawData)
|
||||||
inst.setDimension(len(ds.shape))
|
inst.setDimension(len(ds.shape))
|
||||||
sizes = []
|
sizes = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue