Skip to content

Commit

Permalink
heatmaps tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsschim committed Apr 18, 2024
1 parent 356104d commit 1035a46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion diff_classifier/heatmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def plot_heatmap(prefix, feature='asymmetry1', vmin=0, vmax=1, resolution=512, r
regions, vertices = voronoi_finite_polygons_2d(vor)
my_map = cm.get_cmap('viridis')
norm = mpl.colors.Normalize(t_min, t_max, clip=True)
mapper = cm.ScalarMappable(norm=norm, cmap=cm.viridis)
mapper = cm.ScalarMappable(norm=norm, cmap=my_map)

test = 0
p2 = 0
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytest
pandas
scikit-learn
pytest==7.3.1
pandas==1.5.3
scikit-learn==1.2.2
boto3
shapely
numpydoc
Expand All @@ -13,4 +13,4 @@ notebook
numpy
pyimagej
scikit-image

matplotlib==3.7.1

0 comments on commit 1035a46

Please sign in to comment.