-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.py
More file actions
43 lines (31 loc) · 1.11 KB
/
Copy pathexample.py
File metadata and controls
43 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 13 13:12:21 2021
@author: flexable
"""
from flexABLE.flexABLE import World
import pandas as pd
scenarios = [(2016,120)]#,(2017,365),(2018,365),(2019,365)]
importStorages = True
importCRM = True
importDHM = True
importCBT = True
checkAvailability = True
meritOrder = True
writeResultsToDB = False
for year, days in scenarios:
startingPoint = 0
snapLength = 96*days
timeStamps = pd.date_range('{}-01-01T00:00:00'.format(year), '{}-01-01T00:00:00'.format(year+1), freq = '15T')
example = World(snapLength,
simulationID = 'example',
startingDate = timeStamps[startingPoint],
writeResultsToDB = writeResultsToDB)
example.loadScenario(scenario = '{}'.format(year),
checkAvailability = checkAvailability,
importStorages = importStorages,
importCRM = importCRM,
importCBT = importCBT,
meritOrder = meritOrder)
example.runSimulation()