本文整理匯總了Python中params.Params.dataset方法的典型用法代碼示例。如果您正苦於以下問題:Python Params.dataset方法的具體用法?Python Params.dataset怎麽用?Python Params.dataset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類params.Params
的用法示例。
在下文中一共展示了Params.dataset方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Params
# 需要導入模塊: from params import Params [as 別名]
# 或者: from params.Params import dataset [as 別名]
from ocptype import IMAGE, UINT8
from params import Params
from jsonproj import createJson
from postmethods import getURL, postURL, postNPZ, getNPZ
import makeunitdb
import site_to_test
SITE_HOST = site_to_test.site
p = Params()
p.token = 'unittest'
p.resolution = 0
p.channels = ['CHAN1', 'CHAN2']
p.channel_type = IMAGE
p.datatype = UINT8
p.dataset = 'unittest_ds'
class Test_Project_Json():
def setup_class(self):
"""Setup Parameters"""
pass
def teardown_class(self):
"""Teardown Parameters"""
#makeunitdb.deleteTestDB('unittest')
#makeunitdb.deleteTestDB('unittest2')
# calling a different fucntion for project list as django1.9 introduced new weirdness
makeunitdb.deleteTestDBList(['unittest','unittest2'])
def test_basic_json(self):
示例2: Params
# 需要導入模塊: from params import Params [as 別名]
# 或者: from params.Params import dataset [as 別名]
import ND.settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'ND.settings'
from ingest.core.config import Configuration
from ndlib.ndtype import IMAGE, UINT8, MYSQL
from params import Params
from ndlib.restutil import getJson, postJson, deleteJson, postURL
from test_settings import *
p = Params()
p.token = 'unittest'
p.project = 'unittest'
p.resolution = 0
p.channels = ['CHAN1', 'CHAN2']
p.channel_type = IMAGE
p.datatype = UINT8
p.dataset = 'unittest'
@pytest.mark.skipif(True, reason='Test not necessary for dev mode')
class Test_AutoIngest():
def setup_class(self):
"""Setup Parameters"""
makeunitdb.createTestDB(p.project, channel_list=p.channels, ximagesize=2000, yimagesize=2000, zimagesize=1000, xvoxelres=1.0, yvoxelres=1.0, zvoxelres=5.0, token_name=p.token)
self.job_id = 0
def teardown_class(self):
"""Teardown Parameters"""
makeunitdb.deleteTestDB(p.project, token_name=p.token)
def test_config(self):