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
65d7122a
Commit
65d7122a
authored
6 years ago
by
Christophe Benz
Browse files
Options
Downloads
Patches
Plain Diff
Let value_to_float handle None values
parent
c9194915
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11879
passed with stage
in 1 hour, 26 minutes, and 16 seconds
Changes
1
Pipelines
76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
convert.py
+1
-3
1 addition, 3 deletions
convert.py
with
1 addition
and
3 deletions
convert.py
+
1
−
3
View file @
65d7122a
...
...
@@ -170,9 +170,7 @@ def convert_sdmx_element(element, dataset_json, dataset_context, dsd_infos, seri
timings
[
"
observations_labels
"
]
+=
time
.
time
()
-
t0
obs_value
=
element
.
attrib
.
get
(
"
OBS_VALUE
"
)
if
obs_value
is
not
None
:
obs_value
=
observations
.
value_to_float
(
obs_value
)
obs_value
=
observations
.
value_to_float
(
element
.
attrib
.
get
(
"
OBS_VALUE
"
))
dataset_context
[
"
current_series_observations
"
].
append
([
element
.
attrib
[
"
TIME_PERIOD
"
],
# SDMX periods are already normalized.
obs_value
,
...
...
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