Issue #1332: Update pypies createStorageRecord to not pull in parent group node

Change-Id: Ieb4b45bce2f5c0eca41301eacbd7782b3c310edd

Former-commit-id: 8c087722b8 [formerly 3778419a78] [formerly 375383a09f] [formerly 375383a09f [formerly 73c2fa6ed3]] [formerly d2aff4118b [formerly 375383a09f [formerly 73c2fa6ed3] [formerly d2aff4118b [formerly 926250abd96f2b5e30b6a863735a10203491a257]]]]
Former-commit-id: d2aff4118b
Former-commit-id: 8695259944e92c4bb7eb07143a62427b311f7c18 [formerly 797dbdc6515d86bef0473de80cc129c909946fd4] [formerly 521ebb7e86 [formerly 859d3840bb]]
Former-commit-id: 521ebb7e86
Former-commit-id: 9af2ce6934
This commit is contained in:
Richard Peter 2012-11-14 12:51:45 -06:00
parent bb2a53b80d
commit 7420a2fb57

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