Commit 836bc55b authored by Bichen Li's avatar Bichen Li

-Fix decode problems

parent 280bb40d
#!/usr/bin/python
# coding: utf8
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from timeseries import * from timeseries import *
import re import re
def read_timeseries_Modelica(filename, timeseries_names=None, is_regex=False): def read_timeseries_Modelica(filename, timeseries_names=None, is_regex=False):
from modelicares import SimRes from modelicares import SimRes
sim = SimRes(filename) sim = SimRes(filename)
...@@ -289,7 +294,6 @@ def read_timeseries_simulink_loadflow(file_name, timeseries_names=None, is_regex ...@@ -289,7 +294,6 @@ def read_timeseries_simulink_loadflow(file_name, timeseries_names=None, is_regex
# Read in data from result file of neplan # Read in data from result file of neplan
name = [] # list for data type names name = [] # list for data type names
value = [] # list for data value = [] # list for data
timeseries = [] timeseries = []
line_del = [] # a list for the value to be deleted 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 ...@@ -334,4 +338,4 @@ def read_timeseries_simulink_loadflow(file_name, timeseries_names=None, is_regex
line_del = sorted(line_del) line_del = sorted(line_del)
for num_to_del in range(len(line_del)): for num_to_del in range(len(line_del)):
del timeseries[line_del[len(line_del) - num_to_del - 1]] del timeseries[line_del[len(line_del) - num_to_del - 1]]
return timeseries return timeseries
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment