Skip to content

Commit

Permalink
typo fix, also make the rectangles more yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
sadavis1 committed May 23, 2023
1 parent 370f41e commit 54360af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/gdp/constrained_layout/cons_layout_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
# sep_penalty_matrix (as nested array)
# Note that only the strict upper triangle of sep_penalty_matrix is used
constrained_layout_model_examples = {
"Clay0203": [
"CLay0203": [
{1: 5, 2: 7, 3: 3},
{1: 6, 2: 5, 3: 3},
{1: 15, 2: 50},
{1: 10, 2: 80},
{1: 6, 2: 5},
[[0, 300, 240], [0, 0, 100]],
],
"Clay0204": [
"CLay0204": [
{1: 5, 2: 7, 3: 3, 4: 2},
{1: 6, 2: 5, 3: 3, 4: 3},
{1: 15, 2: 50},
{1: 10, 2: 80},
{1: 6, 2: 10},
[[0, 300, 240, 210], [0, 0, 100, 150], [0, 0, 0, 120]],
],
"Clay0205": [
"CLay0205": [
{1: 5, 2: 7, 3: 3, 4: 2, 5: 9},
{1: 6, 2: 5, 3: 3, 4: 3, 5: 7},
{1: 15, 2: 50},
Expand All @@ -47,23 +47,23 @@
[0, 0, 0, 0, 60],
],
],
"Clay0303": [
"CLay0303": [
{1: 5, 2: 7, 3: 3},
{1: 6, 2: 5, 3: 3},
{1: 15, 2: 50, 3: 30},
{1: 10, 2: 80, 3: 50},
{1: 6, 2: 5, 3: 4},
[[0, 300, 240], [0, 0, 100]],
],
"Clay0304": [
"CLay0304": [
{1: 5, 2: 7, 3: 3, 4: 2},
{1: 6, 2: 5, 3: 3, 4: 3},
{1: 15, 2: 50, 3: 30},
{1: 10, 2: 80, 3: 50},
{1: 6, 2: 5, 3: 4},
[[0, 300, 240, 210], [0, 0, 100, 150], [0, 0, 0, 120]],
],
"Clay0305": [
"CLay0305": [
{1: 5, 2: 7, 3: 3, 4: 2, 5: 9},
{1: 6, 2: 5, 3: 3, 4: 3, 5: 7},
{1: 15, 2: 50, 3: 30},
Expand All @@ -80,7 +80,7 @@


def build_constrained_layout_model(
params=constrained_layout_model_examples['Clay0203'], metric="l1"
params=constrained_layout_model_examples['CLay0203'], metric="l1"
):
"""Build the model."""

Expand Down Expand Up @@ -310,7 +310,7 @@ def draw_model(m, title=None):
),
m.rect_length[r],
m.rect_height[r],
facecolor="#ebdc78",
facecolor="#fbec68",
edgecolor="#000000",
)
)
Expand Down

0 comments on commit 54360af

Please sign in to comment.