Commit 5f05189b authored by Bichen Li's avatar Bichen Li

Add some comments to the code

parent 4f262493
...@@ -48,6 +48,11 @@ def convert_neplan_to_modelica_timeseries(neplan_timeseries): ...@@ -48,6 +48,11 @@ def convert_neplan_to_modelica_timeseries(neplan_timeseries):
return neplan_timeseries return neplan_timeseries
def convert_simulink_to_modelica_timeseries(simseri): def convert_simulink_to_modelica_timeseries(simseri):
"""
Convert the steady-state results timeseries from simulink to modelica timeseries
:param simseri: simulate timeseries, generated by the result file from simulink
:return: a result timeseries
"""
res = [] res = []
for check in range(len(simseri)): for check in range(len(simseri)):
if 'U AB:' in simseri[check].name: if 'U AB:' in simseri[check].name:
......
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