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
118def08
Commit
118def08
authored
6 years ago
by
Jan Dinkelbach
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev-bli' of git.rwth-aachen.de:acs/public/simulation/data-processing into dev-bli
parents
1ccf9738
02b009a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assert_Results.py
+1
-1
1 addition, 1 deletion
Assert_Results.py
dataprocessing/readtools.py
+4
-4
4 additions, 4 deletions
dataprocessing/readtools.py
with
5 additions
and
5 deletions
Assert_Results.py
+
1
−
1
View file @
118def08
...
...
@@ -2,7 +2,7 @@ import re
import
os
import
sys
from
dataprocessing.
V
alidationtools
import
*
from
dataprocessing.
v
alidationtools
import
*
from
dataprocessing.readtools
import
*
print
(
"
Test Start
"
)
# We need to extract all the result files from git now
...
...
This diff is collapsed.
Click to expand it.
dataprocessing/readtools.py
+
4
−
4
View file @
118def08
...
...
@@ -184,13 +184,13 @@ def read_timeseries_NEPLAN_loadflow(file_name, timeseries_names=None, is_regex=F
value
=
[]
# list for data
namelist
=
[
'
U
'
,
'
ANGLEU
'
,
'
P
'
,
'
Q
'
,
'
I
'
,
'
ANGLEI
'
]
namelist
=
[
'
U
'
,
'
ANGLEU
'
,
'
P
'
,
'
Q
'
,
'
I
'
,
'
ANGLEI
'
]
# Suffix of the data name
timeseries
=
[]
line_del
=
[]
# a list for the value to be deleted
isfloat
=
re
.
compile
(
r
'
^[-+]?[0-9]+\.[0-9]+$
'
)
# regular expression to find float values
#
the
',' in the floats in result file to '.'
for
line
in
str_tmp
.
readlines
():
#
Transfer
',' in the floats in result file to '.'
for
line
in
str_tmp
.
readlines
():
# Check the data to find out floats with ','
line
=
line
.
replace
(
"
,
"
,
"
.
"
)
high
-=
high
low
-=
low
...
...
@@ -216,7 +216,7 @@ def read_timeseries_NEPLAN_loadflow(file_name, timeseries_names=None, is_regex=F
with the assumption that the topology of the gird should be correct with which we can validate the
current by comparing the voltage of the nodes connected to the ends of the line
"""
if
flag
is
not
True
:
if
flag
is
not
True
:
# flag is true when it's the first line
if
value
[
3
]
is
not
'
#
'
:
for
m
in
range
(
6
):
timeseries
.
append
(
TimeSeries
(
value
[
3
]
+
'
.
'
+
namelist
[
m
],
...
...
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