Skip to content

Commit

Permalink
Misc integers -> booleans.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Apr 29, 2014
1 parent 05312cd commit e60c2c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions urbansim/urbanchoice/mnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def mnl_loglik(beta, data, chosen, numalts, weights=None, lcgrad=False,
return -1 * loglik, -1 * gradarr


def mnl_simulate(data, coeff, numalts, GPU=0, returnprobs=0):

def mnl_simulate(data, coeff, numalts, GPU=False, returnprobs=False):
atype = 'numpy' if not GPU else 'cuda'

data = np.transpose(data)
Expand Down
2 changes: 1 addition & 1 deletion urbansim/urbansim/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,6 @@ def choose(self, p, mask, alternatives, segment, new_homes, minsize=None):
alternatives["supply"].ix[
alternatives.index.values[indexes]] -= minsize
else:
mask[indexes] = 1
mask[indexes] = True

return mask, new_homes

0 comments on commit e60c2c0

Please sign in to comment.