Skip to content

Commit

Permalink
Fix Black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
uvchik committed Jun 15, 2022
1 parent 5f9c863 commit dd9af29
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
3 changes: 2 additions & 1 deletion examples/excel_reader/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def create_nodes(nd=None):
inputs={bus1: solph.Flow()},
outputs={bus2: solph.Flow()},
conversion_factors={bus2: p["efficiency"]},
))
)
)
nodes.append(
solph.components.Transformer(
label="powerline" + "_" + p["bus_2"] + "_" + p["bus_1"],
Expand Down
54 changes: 48 additions & 6 deletions examples/gradient_example/gradient_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,54 @@
energysystem = EnergySystem(timeindex=date_time_index, timemode="explicit")

demand = [
209643, 207497, 200108, 191892, 185717, 180672, 172683, 170048, 171132,
179532, 189155, 201026, 208466, 207718, 205443, 206255, 217240, 232798,
237321, 232387, 224306, 219280, 223701, 213926, 201834, 192215, 187152,
184355, 184438, 182786, 180105, 191509, 207104, 222501, 231127, 238410,
241184, 237413, 234469, 235193, 242730, 264196, 265950, 260283, 245578,
238849, 241553, 231372
209643,
207497,
200108,
191892,
185717,
180672,
172683,
170048,
171132,
179532,
189155,
201026,
208466,
207718,
205443,
206255,
217240,
232798,
237321,
232387,
224306,
219280,
223701,
213926,
201834,
192215,
187152,
184355,
184438,
182786,
180105,
191509,
207104,
222501,
231127,
238410,
241184,
237413,
234469,
235193,
242730,
264196,
265950,
260283,
245578,
238849,
241553,
231372,
]

# create natural gas bus
Expand Down

0 comments on commit dd9af29

Please sign in to comment.