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:
Nate Jensen 2012-11-14 16:10:49 -06:00 committed by Gerrit Code Review
commit 1f11cf8ee1

View file

@ -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 = []