Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
discus
pydtnsim
Commits
2e9badb5
Commit
2e9badb5
authored
Aug 16, 2017
by
Jarrod Pas
Browse files
Fixes data path in read_meta_file
parent
02e407d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pydtn/shed.py
View file @
2e9badb5
...
...
@@ -49,7 +49,10 @@ def write_meta_file(meta_path, csv_path, duty_cycle_length=300):
def
read_meta_file
(
meta_path
):
"""Return metadata for a data set, from a metadata file."""
with
open
(
meta_path
)
as
meta_file
:
return
json
.
load
(
meta_file
)
meta
=
json
.
load
(
meta_file
)
meta
[
'data'
]
=
path
.
join
(
path
.
dirname
(
meta_path
),
meta
[
'data'
])
return
meta
raise
RuntimeError
(
'Should not get here...'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment