Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
9c47bc2e
Commit
9c47bc2e
authored
4 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-710
: Fixed syntax error and resolving references to root in resolve_path.
parent
f42deaf1
No related branches found
No related tags found
3 merge requests
!634
WIP: COBALT commissioning delta
,
!498
TMSS-710: Implement pulp feedback, and overhaul generation of pulp output dataproducts
,
!481
Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/PyCommon/json_utils.py
+5
-1
5 additions, 1 deletion
LCS/PyCommon/json_utils.py
with
5 additions
and
1 deletion
LCS/PyCommon/json_utils.py
+
5
−
1
View file @
9c47bc2e
...
@@ -163,11 +163,15 @@ def resolve_path(schema, reference: str):
...
@@ -163,11 +163,15 @@ def resolve_path(schema, reference: str):
parts
=
reference
.
strip
(
'
/
'
).
split
(
'
/
'
)
parts
=
reference
.
strip
(
'
/
'
).
split
(
'
/
'
)
subschema
=
schema
subschema
=
schema
if
parts
==
[
''
]:
# reference to root
return
schema
try
:
try
:
for
part
in
parts
:
for
part
in
parts
:
subschema
=
subschema
[
part
]
subschema
=
subschema
[
part
]
except
KeyError
as
e
:
except
KeyError
as
e
:
raise
KeyError
(
"
Could not resolve path %s in schema %s
"
%
(
path
,
schema
))
from
e
raise
KeyError
(
"
Could not resolve path %s in schema %s
"
%
(
reference
,
schema
))
from
e
return
subschema
return
subschema
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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