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

Change-Id: Ieb4b45bce2f5c0eca41301eacbd7782b3c310edd

Former-commit-id: 3778419a78 [formerly 375383a09f] [formerly 73c2fa6ed3] [formerly 3778419a78 [formerly 375383a09f] [formerly 73c2fa6ed3] [formerly d2aff4118b [formerly 73c2fa6ed3 [formerly 926250abd96f2b5e30b6a863735a10203491a257]]]]
Former-commit-id: d2aff4118b
Former-commit-id: 9af2ce6934 [formerly 521ebb7e86] [formerly 797dbdc6515d86bef0473de80cc129c909946fd4 [formerly 859d3840bb]]
Former-commit-id: a6717dcd2c8e58e50ab5fdcda99aadadf7f36686 [formerly cd85a43b4a]
Former-commit-id: cb55682595
This commit is contained in:
Richard Peter 2012-11-14 12:51:45 -06:00
parent f4fc1060be
commit 743acdcaaa

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