Skip to content

Commit 94e4b52

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 119424d commit 94e4b52

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

tutorials/Modelica models Handling.ipynb

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10-
"import pandas as pd\n",
1110
"import os\n",
12-
"from pathlib import Path"
11+
"from pathlib import Path\n",
12+
"\n",
13+
"import pandas as pd"
1314
]
1415
},
1516
{
@@ -98,10 +99,8 @@
9899
"outputs": [],
99100
"source": [
100101
"reference_df = pd.read_csv(\n",
101-
" Path(TUTORIAL_DIR) / \"resources/study_df.csv\",\n",
102-
" index_col=0,\n",
103-
" parse_dates=True\n",
104-
") "
102+
" Path(TUTORIAL_DIR) / \"resources/study_df.csv\", index_col=0, parse_dates=True\n",
103+
")"
105104
]
106105
},
107106
{
@@ -137,7 +136,7 @@
137136
"source": [
138137
"df_to_combitimetable(\n",
139138
" df=reference_df.loc[\"2018-03-22\":\"2018-03-23\"],\n",
140-
" filename=\"resources/boundary_temp.txt\"\n",
139+
" filename=\"resources/boundary_temp.txt\",\n",
141140
")"
142141
]
143142
},
@@ -215,12 +214,12 @@
215214
"outputs": [],
216215
"source": [
217216
"simulation_opt = {\n",
218-
" \"startTime\": second_index[0],\n",
219-
" \"stopTime\": second_index[-1],\n",
220-
" \"stepSize\": 300,\n",
221-
" \"tolerance\": 1e-06,\n",
222-
" \"solver\": \"dassl\",\n",
223-
" \"outputFormat\": \"csv\"\n",
217+
" \"startTime\": second_index[0],\n",
218+
" \"stopTime\": second_index[-1],\n",
219+
" \"stepSize\": 300,\n",
220+
" \"tolerance\": 1e-06,\n",
221+
" \"solver\": \"dassl\",\n",
222+
" \"outputFormat\": \"csv\",\n",
224223
"}"
225224
]
226225
},
@@ -239,11 +238,7 @@
239238
"metadata": {},
240239
"outputs": [],
241240
"source": [
242-
"output_list = [\n",
243-
" \"T_coat_ins.T\",\n",
244-
" \"T_ins_ins.T\",\n",
245-
" \"Tw_out.T\"\n",
246-
"]"
241+
"output_list = [\"T_coat_ins.T\", \"T_ins_ins.T\", \"Tw_out.T\"]"
247242
]
248243
},
249244
{
@@ -308,7 +303,7 @@
308303
" \"Tins1_init\": 19.70 + 273.15,\n",
309304
" \"Tins2_init\": 10.56 + 273.15,\n",
310305
" \"Tcoat_init\": 6.4 + 273.15,\n",
311-
" 'Lambda_ins.k': 0.04,\n",
306+
" \"Lambda_ins.k\": 0.04,\n",
312307
"}"
313308
]
314309
},
@@ -333,7 +328,7 @@
333328
"outputs": [],
334329
"source": [
335330
"init_res_OM = simu_OM.simulate(\n",
336-
" simflags = \"-initialStepSize=60 -maxStepSize=3600 -w -lv=LOG_STATS\",\n",
331+
" simflags=\"-initialStepSize=60 -maxStepSize=3600 -w -lv=LOG_STATS\",\n",
337332
" parameter_dict=parameter_dict_OM,\n",
338333
" year=2024,\n",
339334
")"

0 commit comments

Comments
 (0)