spectral_connectivity.connectivity.DirectedOrientationWarning#
- exception DirectedOrientationWarning[source]#
A directed measure’s orientation differs from spectral_connectivity 2.x.
Emitted by the
Connectivitymethods that returned[..., target, source]in 2.x and now return[..., source, target], and bymultitaper_connectivity()andconnectivity_to_xarray()when they compute pairwise or subset spectral Granger prediction, whosesel(source=a, target=b)wasb -> ain 2.x (the 2.x wrapper rejected the transfer-function measures). Code written for 2.x keeps running but reads the opposite direction. This warning is temporary; silence it, without hiding other warnings, withwarnings.filterwarnings("ignore", category=DirectedOrientationWarning).