Merge "Issue #1332: Update pypies createStorageRecord to not pull in parent group node" into development
Former-commit-id:ffce7efeb2
[formerly 31989b21e8199a739d2764d226b02de056d3f8a3] Former-commit-id:72a54e9e29
This commit is contained in:
commit
1f11cf8ee1
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