Commit bd7182be authored by Chanelle Lee's avatar Chanelle Lee
Browse files

Another renaming bug

parent 9ad06e3a
......@@ -42,6 +42,7 @@ class Trial(object):
"""
self._numSims = numSims
self._parameters = parameters
self._numOptions = parameters['numOptions']
self._optionWeights = optionWeights
self._filePath = filePath
self._path = path
......@@ -111,7 +112,7 @@ class Trial(object):
def retConfigDF(self):
config = self._parameters.copy()
config['numOptions'] = self.numOptions
config['numOptions'] = self._numOptions
configDF = pd.DataFrame(data=config, index=[0])
return configDF
......@@ -147,7 +148,7 @@ class Trial(object):
sims = np.arange(0, self._numSims)
iterations = np.arange(0, self._parameters['totalIts'])
agents = np.arange(0, self._parameters['popSize'])
options = np.arange(0, self.numOptions)
options = np.arange(0, self._numOptions)
arrays = np.meshgrid(sims, iterations, agents, options)
data = np.stack([a.reshape(-1).T for a in arrays]).T
......
Supports Markdown
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