-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_dataset.py
More file actions
32 lines (23 loc) · 856 Bytes
/
test_dataset.py
File metadata and controls
32 lines (23 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
from ThreeDARD import *
assets = ["Maitreya_Buddha", "Dame_d_Elche", "Os", "Jonque", "Guitare_tatou", "Annexe_Haut_Carre", "Great Tit Skull"]
dataset.init("./dataset")
dataset.verbose = True
forceSync = True
d = dataset.getDatasetMeta(forceSync)
assets = d["assets"]
def test_forcingAssetsMeta():
for a in assets:
print ("Processing asset " + a)
asset = dataset.getAssetMeta(a, forceSync)
def test_browsingAssetsMeta():
for a in assets:
print ("Processing asset " + a)
asset = dataset.getAssetMeta(a, forceSync)
def test_browsingUnitsMeta():
for a in assets:
print ("Processing asset " + a)
asset = dataset.getAssetMeta(a, forceSync)
for u in asset["units"]:
unit = dataset.getUnitMeta(a, u, forceSync)
print ( "[" + u + "] " + unit["name"])