abuzarmahmood / blech_clust

GNU General Public License v3.0
7 stars 4 forks source link

Issue with no plots...non GUI backend in post-process #172

Closed emmalala123 closed 1 month ago

emmalala123 commented 1 month ago

Commit https://github.com/abuzarmahmood/blech_clust/commit/431ceb95d1bc431c20cb4f1c5e6b49f00936ca35

Error trace below

 Electrode number :: "x" to exit :: 4
 Solution number :: "x" to exit :: 2
 Cluster numbers (anything separated) ::"x" to exit :: 0
||| Electrode 4, Solution 2, Cluster [0] |||
/home/cmazzio/Desktop/blech_clust/utils/blech_post_process_utils.py:164: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.show()
 SPLIT this cluster? (y/n)"x" to exit :: y
Number of clusters (default=5): 5
:: Max iterations (1000 is plenty) : 100 
:: Convergence criterion (usually 0.0001) : 0.001 
:: Number of random restarts (10 is plenty) : 10
 Use these parameters? (y/n)"x" to exit :: y
/home/cmazzio/Desktop/blech_clust/utils/blech_post_process_utils.py:216: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.show()
 Please select from ('0', '1', '2', '3', '4') (anything separated) :: "111" for all ::"x" to exit :: x
abuzarmahmood commented 1 month ago

You can delete this line in utils/blech_process_utils.py and it should work https://github.com/abuzarmahmood/blech_clust/blob/431ceb95d1bc431c20cb4f1c5e6b49f00936ca35/utils/blech_process_utils.py#L21