From 3778419a783955271fbe33461b83aac4b62ab995 Mon Sep 17 00:00:00 2001 From: Richard Peter Date: Wed, 14 Nov 2012 12:51:45 -0600 Subject: [PATCH] Issue #1332: Update pypies createStorageRecord to not pull in parent group node Change-Id: Ieb4b45bce2f5c0eca41301eacbd7782b3c310edd Former-commit-id: d2aff4118bb39fac473752481a78a48f2659fe5e [formerly 73c2fa6ed3894aaf3f596c3ba8909bdcc4d12cd2 [formerly 926250abd96f2b5e30b6a863735a10203491a257]] Former-commit-id: 73c2fa6ed3894aaf3f596c3ba8909bdcc4d12cd2 Former-commit-id: 375383a09f30ed960562c6960a67e4f20b2ccb8b --- pythonPackages/pypies/pypies/impl/DataStoreFactory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonPackages/pypies/pypies/impl/DataStoreFactory.py b/pythonPackages/pypies/pypies/impl/DataStoreFactory.py index f2a00e2266..0887be138c 100644 --- a/pythonPackages/pypies/pypies/impl/DataStoreFactory.py +++ b/pythonPackages/pypies/pypies/impl/DataStoreFactory.py @@ -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 = []