Skip to content

Commit 308f1a4

Browse files
Merge pull request #4 from frapac/master
Fix bugs concerning generation of lightning loads + appliances
2 parents e513d4b + be70562 commit 308f1a4

9 files changed

Lines changed: 159 additions & 87 deletions

File tree

Corpus/__init__.py

Whitespace-only changes.

Corpus/data.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_clusters(employment, **kwargs):
1717
'''
1818
#first go the the correct location
1919
cdir = os.getcwd()
20-
PATH = 'E:\\3_PhD\\6_Python\\StROBe\\Data\\Aerts_Occupancy\\Crosstables\\'
20+
PATH = '../Data/Aerts_Occupancy/Crosstables/'
2121
os.chdir(PATH)
2222
#create an empty dictionary
2323
keys = ['wkdy', 'sat', 'son']
@@ -45,21 +45,21 @@ def get_occDict(cluster, **kwargs):
4545
'''
4646
#first go the the correct location
4747
cdir = os.getcwd()
48-
DATA_PATH = 'E:\\3_PhD\\6_Python\\StROBe\\Data\\Aerts_Occupancy'
49-
PATH = DATA_PATH + '\\Pattern' + str(cluster)
48+
DATA_PATH = '../Data/Aerts_Occupancy'
49+
PATH = DATA_PATH + '/Pattern' + str(cluster)
5050
os.chdir(PATH)
5151
# create an empty dictionary
5252
occDict = dict()
5353
##########################################################################
5454
# first we load the occupancy start states 'oss' from StartStates.txt
55-
ss = dict()
55+
ss = dict()
5656
data = np.loadtxt('StartStates.txt', float)
5757
for i in range(len(data)):
5858
ss.update({str(i+1):data[i]})
5959
# and add the 'oss' data to the occupancy dictionary
6060
occDict.update({'ss':ss})
6161
##########################################################################
62-
# Second we load the occupancy transitions state probabilities 'osn'
62+
# Second we load the occupancy transitions state probabilities 'osn'
6363
# from TransitionProbability.txt
6464
data = np.loadtxt('TransitionProbability.txt', float)
6565
for i in range(3):
@@ -90,16 +90,16 @@ def get_actDict(cluster, **kwargs):
9090
'''
9191
#first go the the correct location
9292
cdir = os.getcwd()
93-
DATA_PATH = 'E:\\3_PhD\\6_Python\\StROBe\\Data\\Aerts_Activities'
93+
DATA_PATH = '../Data/Aerts_Activities'
9494
os.chdir(DATA_PATH)
9595
# create an empty dictionary
9696
actDict = dict()
9797
##########################################################################
9898
# first we define the dictionary used as legend for the load file
99-
act = {0:'pc', 1:'food', 2:'vacuum', 3:'iron', 4:'tv', 5:'audio',
99+
act = {0:'pc', 1:'food', 2:'vacuum', 3:'iron', 4:'tv', 5:'audio',
100100
6:'dishes', 7:'washing', 8:'drying', 9:'shower'}
101101
##########################################################################
102-
# Second we load the activity proclivity functions 'agn'
102+
# Second we load the activity proclivity functions 'agn'
103103
# from Patter*cluster*.txt
104104
FILNAM = 'Pattern'+str(cluster)+'.txt'
105105
data = np.loadtxt(FILNAM, float)

0 commit comments

Comments
 (0)