[yt-svn] commit/yt: ngoldbaum: Merged in jzuhone/yt (pull request #2441)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Nov 23 09:53:57 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/0bfebdb21e22/
Changeset: 0bfebdb21e22
Branch: yt
User: ngoldbaum
Date: 2016-11-23 17:53:31+00:00
Summary: Merged in jzuhone/yt (pull request #2441)
Issue deprecation warning for photon_simulator
Affected #: 1 file
diff -r 5499b32cce889b3306cf6718b80bc55fa5ce9315 -r 0bfebdb21e22a03f91a11dff8d455ee17e885e92 yt/analysis_modules/photon_simulator/api.py
--- a/yt/analysis_modules/photon_simulator/api.py
+++ b/yt/analysis_modules/photon_simulator/api.py
@@ -10,6 +10,13 @@
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
+from numpy import VisibleDeprecationWarning
+
+import warnings
+warnings.warn("The photon_simulator module is deprecated. "
+ "Please use pyXSIM (http://hea-www.cfa.harvard.edu/~jzuhone/pyxsim) instead.",
+ VisibleDeprecationWarning, stacklevel=2)
+
from .photon_models import \
PhotonModel, \
ThermalPhotonModel
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list