Hello !
I am working on the aisynphys database and more specifically on adjusting the connectivities. I tried to run the connectivity_adjustments notebook (aisynphys/connectivity_adjustments.ipynb at current-release · AllenInstitute/aisynphys · GitHub) but I get this error when I run the last cell :
Traceback (most recent call last):
File "E:\MARGAUX\aisynphys\test3.py", line 380, in <module>
im, cbar, labels = show_connectivity_matrix(
File "E:\MARGAUX\aisynphys\aisynphys\ui\notebook.py", line 242, in show_connectivity_matrix
im, cbar = heatmap(cprob_rgba, pre_class_labels, post_class_labels, ax=ax,
File "E:\MARGAUX\aisynphys\aisynphys\ui\notebook.py", line 61, in heatmap
im = ax.imshow(data, **kwargs)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\_api\deprecation.py", line 454, in wrapper
return func(*args, **kwargs)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\__init__.py", line 1423, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\axes\_axes.py", line 5577, in imshow
im._scale_norm(norm, vmin, vmax)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\cm.py", line 412, in _scale_norm
self.autoscale_None()
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\cm.py", line 645, in autoscale_None
self.norm.autoscale_None(self._A)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\colors.py", line 1720, in autoscale_None
in_trf_domain = np.extract(np.isfinite(self._trf.transform(A)), A)
File "C:\Users\marga\anaconda3\envs\lib\site-packages\matplotlib\transforms.py", line 1500, in transform
raise ValueError(
ValueError: Input values must have shape (N x 1) or (1).
I think the shape of adjusted_connectivity is the issue, but what should I put instead?
Best,
Margaux