Skip to content
Snippets Groups Projects
Commit 836bc55b authored by Bichen Li's avatar Bichen Li
Browse files

-Fix decode problems

parent 280bb40d
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment