Skip to content

Commit

Permalink
🐛 fix remaining colors, test
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed Nov 17, 2023
1 parent 35322b3 commit 0b0d747
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vaep/plotting/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
color_model_mapping['MSIMPUTE_MNAR'] = other_colors[7]
color_model_mapping['TRKNN'] = other_colors[8]
color_model_mapping['SVDMETHOD'] = other_colors[9]
other_colors = sns.color_palette()[10:]
other_colors = other_colors[10:]


def assign_colors(models):
Expand Down
9 changes: 9 additions & 0 deletions vaep/tests/plotting/test_defaults.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from vaep.plotting.defaults import assign_colors


def test_assign_colors():
expected = [(0.8392156862745098, 0.15294117647058825, 0.1568627450980392),
(0.17254901960784313, 0.6274509803921569, 0.17254901960784313),
(0.21044753832183283, 0.6773105080456748, 0.6433941168468681)]
assigned = assign_colors(['DAE', 'CF', 'Test'])
assert assigned == expected

0 comments on commit 0b0d747

Please sign in to comment.