Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eurostat-fetcher
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbnomics-fetchers
eurostat-fetcher
Commits
230f13cf
Commit
230f13cf
authored
6 years ago
by
Christophe Benz
Browse files
Options
Downloads
Patches
Plain Diff
Rename script, fix DBnomics spelling
parent
865a61b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
download.py
+0
-0
0 additions, 0 deletions
download.py
eurostat_to_dbnomics.py
+3
-3
3 additions, 3 deletions
eurostat_to_dbnomics.py
with
3 additions
and
3 deletions
eurostat_fetcher
.py
→
download
.py
+
0
−
0
View file @
230f13cf
File moved
This diff is collapsed.
Click to expand it.
eurostat_to_dbnomics.py
+
3
−
3
View file @
230f13cf
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment