Megaplot deprecation warnings
!143 (merged) solves numpy version issues that throw an error and prevent megaplot from completing, but there are still a few deprecation warnings, which might become a problem at some point. I list those below.
- Elementwise comparison
if signalChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1244: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if glitchChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1252: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if not signalChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1254: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if not glitchChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1303: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if not signalChains == [] and not glitchChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1309: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if not signalChains == []:
/home/bence.becsy/O3/BW/bin/megaplot.py:1311: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
if not glitchChains == []:
- Matplotlib hist's normed kwarg deprecated
The 'normed' kwarg was deprecated in Matplotlib 2.1 and will be removed in 3.1. Use 'density' instead.
plt.hist(whitened[ifo][imin::],bins=50,normed=True,color=colour,label=ifoNames[int(ifo)],histtype='step',ls=hashlist[int(ifo)])
/home/bence.becsy/O3/BW/bin/megaplot.py:1489: MatplotlibDeprecationWarning:
The 'normed' kwarg was deprecated in Matplotlib 2.1 and will be removed in 3.1. Use 'density' instead.
plt.hist(whitened[ifo][imin::],bins=50,normed=True,color=colour,label=ifoNames[int(ifo)],histtype='step',ls=hashlist[int(ifo)],cumulative=-1)```