Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Data Processing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
Data Processing
Commits
836bc55b
Commit
836bc55b
authored
Jul 12, 2018
by
Bichen Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Fix decode problems
parent
280bb40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dataprocessing/readtools.py
dataprocessing/readtools.py
+6
-2
No files found.
dataprocessing/readtools.py
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
Write
Preview
Markdown
is supported
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