Commit 6f4ace53 authored by M. Huang's avatar M. Huang
Browse files

wip: refactor tabledataset

parent 6bd91f41
This diff is collapsed.
name: ArrayDataset_DataModel
description: ArrayDataset class data model mandatory configuration
parents:
-
schema: '1.6'
metadata:
description:
data_type: string
description: Description of this dataset
default: UNKNOWN
valid: ''
type:
data_type: string
description: Type identification. Name of class.
default: ArrayDataset
valid: ''
unit:
data_type: string
description: Unit of every element.
default: null
valid: ''
shape:
data_type: tuple
description: Number of elements in each dimension. Quick changers to the right.
default: ()
valid: ''
typecode:
data_type: string
description: Python internal storage code.
default: UNKNOWN
valid: ''
version:
data_type: string
description: Version of dataset
default: '0.1'
valid: ''
FORMATV:
data_type: string
description: Version of dataset schema and revision
default: '1.6.0.1'
valid: ''
datasets:
This diff is collapsed.
......@@ -3,6 +3,7 @@
from fdi.dataset.product import Product
from fdi.dataset.eq import deepcmp
from fdi.dataset.testproducts import get_sample_product
from fdi.pal.productstorage import ProductStorage
from fdi.pal.query import MetaQuery
from fdi.pal.poolmanager import PoolManager, DEFAULT_MEM_POOL
......@@ -182,6 +183,13 @@ def crud_t(poolid, poolurl, local_pools_dir, pool):
pstore.getPool(poolid).removeAll()
assert pool.isEmpty()
tag = '==Sample ** Product=='
logger.info('test sample prod with tag: '+tag)
sp = get_sample_product()
urn = pstore.save(sp, tag=tag)
print('Sample Prod saved with tag "%s" %s to %s' %
(tag, urn.urn, pool.poolname))
logger.info('unregister a pool')
assert len(pstore.getPools()) == 1, 'product storage size error: ' + \
str(pstore.getPools())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment