You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an issue when running the test suite of GDSCTools. There are many ways to fix it, but I think the most natural fix is in the colormap package, hence this issue. Feel free to move it to one of the other repos if you think that's more appropriate.
The fix I'm proposing is that the cmap_builder-function should check if there is only one parameter given and it is already a matplotlib cmap, it should simply return that cmap.
I've got an issue when running the test suite of GDSCTools. There are many ways to fix it, but I think the most natural fix is in the colormap package, hence this issue. Feel free to move it to one of the other repos if you think that's more appropriate.
The fix I'm proposing is that the
cmap_builder
-function should check if there is only one parameter given and it is already a matplotlib cmap, it should simply return that cmap.A solution would look roughly like this:
This issue arises from the following code:
In GDCTools.anova_results:
The add_bgcolor comes from reports.HTMLTable class:
So this last cmap_builder gets called with an object that's already a matplotlib colormap.
If you're happy with the above solution, I can submit a PR. If you want to fix it in Reports or GDSCTools, please let me know.
The text was updated successfully, but these errors were encountered: