[yt-svn] commit/yt: yihaochen: Set sampling_type in add_deposited_particle_field to avoid warning message.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Dec 21 12:53:25 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/09f0ef297d70/
Changeset: 09f0ef297d70
Branch: yt
User: yihaochen
Date: 2016-12-21 19:46:32+00:00
Summary: Set sampling_type in add_deposited_particle_field to avoid warning message.
Affected #: 1 file
diff -r 9f15c5506c6304da38dd7338b4870f1e4113ccbc -r 09f0ef297d7068078a021fc8290d9e3519baf82d yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -1218,6 +1218,7 @@
self.add_field(
("deposit", field_name),
function=_deposit_field,
+ sampling_type="cell",
units=units,
take_log=take_log,
validators=[ValidateSpatial()])
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