Issue #1332: Update pypies createStorageRecord to not pull in parent group node
Change-Id: Ieb4b45bce2f5c0eca41301eacbd7782b3c310edd Former-commit-id:8c087722b8
[formerly3778419a78
] [formerly375383a09f
] [formerly375383a09f
[formerly73c2fa6ed3
]] [formerlyd2aff4118b
[formerly375383a09f
[formerly73c2fa6ed3
] [formerlyd2aff4118b
[formerly 926250abd96f2b5e30b6a863735a10203491a257]]]] Former-commit-id:d2aff4118b
Former-commit-id: 8695259944e92c4bb7eb07143a62427b311f7c18 [formerly 797dbdc6515d86bef0473de80cc129c909946fd4] [formerly521ebb7e86
[formerly859d3840bb
]] Former-commit-id:521ebb7e86
Former-commit-id:9af2ce6934
This commit is contained in:
parent
bb2a53b80d
commit
7420a2fb57
1 changed files with 3 additions and 1 deletions
|
@ -54,11 +54,13 @@ def createStorageRecord(rawData, ds):
|
|||
t = typeToClassMap[rawData.dtype.type]
|
||||
inst = t()
|
||||
name = ds.name
|
||||
parentName = '/'
|
||||
slashIndex = name.rfind('/')
|
||||
if slashIndex > -1:
|
||||
parentName = name[0:slashIndex]
|
||||
name = name[slashIndex+1:]
|
||||
inst.setName(name)
|
||||
inst.setGroup(ds.parent.name)
|
||||
inst.setGroup(parentName)
|
||||
inst.putDataObject(rawData)
|
||||
inst.setDimension(len(ds.shape))
|
||||
sizes = []
|
||||
|
|
Loading…
Add table
Reference in a new issue