Skip to content

Commit

Permalink
Bug fixes: Fix default clear request variant (now inDirn by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
klasbo committed Mar 5, 2018
1 parent b6fd30a commit 42b1fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cost_fns/hall_request_assigner/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ enum ClearRequestType {
inDirn,
}

ClearRequestType clearRequestType = ClearRequestType.all;
ClearRequestType clearRequestType = ClearRequestType.inDirn;
6 changes: 1 addition & 5 deletions cost_fns/hall_request_assigner/optimal_hall_requests.d
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,7 @@ unittest {
[false, false],
[false, false],
];

auto crt = clearRequestType;
clearRequestType = ClearRequestType.inDirn;
scope(exit) clearRequestType = crt;


auto optimal = optimalHallRequests(hallreqs, states);
assert(optimal == [
"1" : [[0,0],[0,1],[0,0],[0,0]].to!(bool[][]),
Expand Down

0 comments on commit 42b1fb2

Please sign in to comment.