[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Nov 23 09:53:58 PST 2016
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/2a89f56de76f/
Changeset: 2a89f56de76f
Branch: yt
User: jzuhone
Date: 2016-11-21 20:19:28+00:00
Summary: Issue deprecation warning for photon_simulator
Affected #: 1 file
diff -r e16d670d32eb0a7725eb80a549d63ab85154c248 -r 2a89f56de76f6c5fdd81e10b5f0369dc59cd6a5e 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)
+
from .photon_models import \
PhotonModel, \
ThermalPhotonModel
https://bitbucket.org/yt_analysis/yt/commits/df41d3468d96/
Changeset: df41d3468d96
Branch: yt
User: jzuhone
Date: 2016-11-23 16:25:33+00:00
Summary: Add stack level argument
Affected #: 1 file
diff -r 2a89f56de76f6c5fdd81e10b5f0369dc59cd6a5e -r df41d3468d96fc308b2037b6978ef9ba35e08e03 yt/analysis_modules/photon_simulator/api.py
--- a/yt/analysis_modules/photon_simulator/api.py
+++ b/yt/analysis_modules/photon_simulator/api.py
@@ -15,7 +15,7 @@
import warnings
warnings.warn("The photon_simulator module is deprecated. "
"Please use pyXSIM (http://hea-www.cfa.harvard.edu/~jzuhone/pyxsim) instead.",
- VisibleDeprecationWarning)
+ VisibleDeprecationWarning, stacklevel=2)
from .photon_models import \
PhotonModel, \
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