BU-hammerTeam / PyHammer

A Python Spectral Typing Suite
MIT License
53 stars 14 forks source link

Various Warnings Produced #30

Open zephyr5050 opened 5 years ago

zephyr5050 commented 5 years ago

Due to updates in Matplotlib and PyQt5, now various warnings crop up which don't hinder PyHammer's execution, but produce annoying command line warnings.

Some warnings experienced include the following:

DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="courier", pointsize=10, pixelsize=13, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("courier", lfWidth=0, lfHeight=-13) dpi=96
D:\Anaconda\lib\site-packages\matplotlib\cbook\deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
  warnings.warn(message, mplDeprecation, stacklevel=1)
zephyr5050 commented 5 years ago

Added content to ignore depreciation warnings from MatPlotLib in c4e44cc5.