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
836bc55b
Commit
836bc55b
authored
6 years ago
by
Bichen Li
Browse files
Options
Downloads
Patches
Plain Diff
-Fix decode problems
parent
280bb40d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dataprocessing/readtools.py
+6
-2
6 additions, 2 deletions
dataprocessing/readtools.py
with
6 additions
and
2 deletions
dataprocessing/readtools.py
+
6
−
2
View file @
836bc55b
#!/usr/bin/python
# coding: utf8
import
numpy
as
np
import
pandas
as
pd
from
timeseries
import
*
import
re
def
read_timeseries_Modelica
(
filename
,
timeseries_names
=
None
,
is_regex
=
False
):
from
modelicares
import
SimRes
sim
=
SimRes
(
filename
)
...
...
@@ -289,7 +294,6 @@ def read_timeseries_simulink_loadflow(file_name, timeseries_names=None, is_regex
# Read in data from result file of neplan
name
=
[]
# list for data type names
value
=
[]
# list for data
timeseries
=
[]
line_del
=
[]
# a list for the value to be deleted
...
...
@@ -334,4 +338,4 @@ def read_timeseries_simulink_loadflow(file_name, timeseries_names=None, is_regex
line_del
=
sorted
(
line_del
)
for
num_to_del
in
range
(
len
(
line_del
)):
del
timeseries
[
line_del
[
len
(
line_del
)
-
num_to_del
-
1
]]
return
timeseries
\ No newline at end of file
return
timeseries
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