Skip to content

Commit

Permalink
Fix mypy typing by forcing values to be tuple rather than map object
Browse files Browse the repository at this point in the history
  • Loading branch information
j1c committed Apr 17, 2024
1 parent 13c9773 commit 78cb228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graspologic/layouts/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def sequential_colors(
keys, values = zip(*node_and_value.items())

if use_log_scale:
values = map(math.log, values)
values = tuple(map(math.log, values))

np_values = np.array(values).reshape(1, -1)
new_values = minmax_scale(np_values, feature_range=(0, num_colors - 1), axis=1)
Expand Down

0 comments on commit 78cb228

Please sign in to comment.