Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pydtnsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
discus
pydtnsim
Commits
2e9badb5
Commit
2e9badb5
authored
7 years ago
by
Jarrod Pas
Browse files
Options
Downloads
Patches
Plain Diff
Fixes data path in read_meta_file
parent
02e407d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3
Version 0.2
,
!2
Document examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pydtn/shed.py
+4
-1
4 additions, 1 deletion
pydtn/shed.py
with
4 additions
and
1 deletion
pydtn/shed.py
+
4
−
1
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...
'
)
...
...
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