Aufgrund eines Versionsupdates wird GitLab am 17.12. zwischen 9:00 und 9:30 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to a version upgrade, GitLab won't be accessible at 17.12. between 9 and 9:30 a.m.

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 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
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