...
 
Commits (2)
......@@ -47,11 +47,11 @@ import shutil
import sys
from pathlib import Path
import jsonstat
import toolz
from docopt import docopt
import jsonstat
import ujson as json
from docopt import docopt
DATAPACKAGE_JSON = {
"dbnomics": {
......@@ -185,8 +185,7 @@ def iterate_dataset(filepath):
time_dimension = None
metric_dimension = None
other_dimensions = []
for dimension_n in range(0, len(dataset.dimensions())):
dimension = dataset.dimension(dimension_n)
for dimension in dataset.dimensions():
if dimension.role == 'time':
time_dimension = dimension
elif dimension.role == 'metric':
......@@ -232,7 +231,7 @@ def iterate_dataset(filepath):
if dimension.role in ('time', 'metric'):
continue
dimension_values = {}
for value_n in range(1, len(dimension)):
for value_n in range(0, len(dimension)):
value = dimension.category(value_n)
dimension_values[value.index] = value.label
dimensions_values_labels[dimension.did] = dimension_values
......