...
 
Commits (3)
......@@ -30,8 +30,8 @@ before_script:
job:
stage: build
only:
- master
except:
- pushes
tags:
- docker
script:
......
......@@ -146,14 +146,13 @@ def get_series_json_and_write_tsv(dataset_dir_path, row_index, row, time_vector)
Side-effect: write TSV file in dataset directory.
"""
observations_vector = row[1:]
# validate_observations_vector = uniform_sequence(check_not_none)
# observations_vector = verified_value(validate_observations_vector(observations_vector))
series_name = row[0].strip()
assert series_name, row
series_code = "row-{}-{}".format(row_index + 1, slugify(series_name))
with open(os.path.join(dataset_dir_path, '{}.tsv'.format(series_code)), 'w') as observations_file:
observations_file.write("PERIOD\tVALUE\n")
for period, observation in zip(time_vector, observations_vector):
observations_file.write("{}\t{}\n".format(period, observation))
......