Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VILLASdataprocessing
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
VILLASframework
VILLASdataprocessing
Commits
cc8f7ab6
Commit
cc8f7ab6
authored
5 years ago
by
Achim Klaus Völker
Browse files
Options
Downloads
Patches
Plain Diff
fixed split for linux systems
parent
426c3f16
Branches
mpc
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
villas/dataprocessing/readtools.py
+3
-3
3 additions, 3 deletions
villas/dataprocessing/readtools.py
with
3 additions
and
3 deletions
villas/dataprocessing/readtools.py
+
3
−
3
View file @
cc8f7ab6
...
...
@@ -382,13 +382,13 @@ def read_timeseries_matpower(input_mat, mapping_conf):
data
=
loadmat
(
input_mat
,
struct_as_record
=
True
)
rootname
,
extension
=
splitext
(
input_mat
)
if
os
.
name
==
'
nt
'
:
rootname
=
rootname
.
split
(
"
\\
"
)[
-
1
]
else
:
rootname
=
rootname
.
split
(
"
/
"
)[
-
1
]
else
:
rootname
=
rootname
.
r
split
(
'
/
'
,
1
)[
-
1
]
busses
=
data
[
rootname
][
'
bus
'
][
0
][
0
]
if
len
(
busses
)
!=
len
(
map
):
print
(
"
numbers of busses in mapping differs from number of busses in .mat
"
)
return
...
...
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