Skip to content

Commit ef0cd30

Browse files
committed
Fix pre-commit issues
1 parent 729ce80 commit ef0cd30

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/ladder/examples/scml_agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _good_price(awi, nmi, state):
4747
up_min, up_max = _issue_bounds(nmi["issues"], UNIT_PRICE)
4848
th = _threshold(state)
4949
if _is_selling(awi, nmi):
50-
return int(round(up_min + th * (up_max - up_min))) # seller: high early, concede down
51-
return int(round(up_max - th * (up_max - up_min))) # buyer: low early, concede up
50+
return int(round(up_min + th * (up_max - up_min))) # seller: high early, concede down
51+
return int(round(up_max - th * (up_max - up_min))) # buyer: low early, concede up
5252

5353

5454
def _my_needs(awi, nmi):
@@ -99,9 +99,9 @@ def decide(observation):
9999

100100
needs = _my_needs(awi, nmi)
101101
if not needs or needs <= 0:
102-
return {"response": "end"} # nothing more to trade
102+
return {"response": "end"} # nothing more to trade
103103

104-
if current[QUANTITY] > needs: # too much -> reject, counter with my best
104+
if current[QUANTITY] > needs: # too much -> reject, counter with my best
105105
counter = _best_offer(awi, nmi, state)
106106
return {"response": "reject", "offer": counter} if counter else {"response": "reject"}
107107

scripts/ladder/push_branches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ for stem in $OKS; do
3535
pushed=$((pushed+1))
3636
done
3737
cd "$REPO_ROOT"; rm -rf "$TMP"
38-
echo "=== pushed $pushed, skipped $skipped ==="
38+
echo "=== pushed $pushed, skipped $skipped ==="

0 commit comments

Comments
 (0)