Skip to content
Snippets Groups Projects
Commit 230f13cf authored by Christophe Benz's avatar Christophe Benz
Browse files

Rename script, fix DBnomics spelling

parent 865a61b9
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -21,7 +21,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Convert Eurostat provider, categories, datasets and time series to DB.nomics JSON and TSV files."""
"""Convert Eurostat provider, categories, datasets and time series to DBnomics JSON and TSV files."""
import argparse
......@@ -155,7 +155,7 @@ def iter_git_objects_in_sdmx_file(source_repo, dataset_code, dataset_tree, sdmx_
def iter_git_objects_in_sdmx_series_element(series_element, sdmx_blob_name, dsd_blob_name, dsd_nsmap, dsd_element,
dataset_json, dataset_tree, observations_tsv, yielded_git_object_ids):
# Ignore some specific XML element attributes corresponding to series SDMX attributes,
# because series SDMX attributes do not exist in DB.nomics.
# because series SDMX attributes do not exist in DBnomics.
series_element_attributes = OrderedDict([
(attribute_key, attribute_value)
for attribute_key, attribute_value in series_element.attrib.items()
......@@ -384,7 +384,7 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument('source_dir', help='path of source directory containing Eurostat series in source format')
parser.add_argument('target_dir', help='path of target directory containing datasets & '
'series in DB.nomics JSON and TSV formats')
'series in DBnomics JSON and TSV formats')
parser.add_argument('--datasets', nargs='+', metavar='DATASET_CODE', help='convert only the given datasets')
parser.add_argument('--exclude-datasets', nargs='+', metavar='DATASET_CODE',
help='do not convert the given datasets')
......
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