[yt-svn] commit/yt: bwkeller: Merged in brittonsmith/yt (pull request #1868)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Nov 23 11:05:36 PST 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c453499f3b1a/
Changeset: c453499f3b1a
Branch: yt
User: bwkeller
Date: 2015-11-23 19:05:29+00:00
Summary: Merged in brittonsmith/yt (pull request #1868)
[bugfix] Allowing ParticlePlot FRBs to use save_as_dataset and making sure to save attributes properly
Affected #: 2 files
diff -r 27f664fe46a4ec9361421167ffb7f963428ac912 -r c453499f3b1a652cd481e179094e53c6fcdbd3cb yt/visualization/fixed_resolution.py
--- a/yt/visualization/fixed_resolution.py
+++ b/yt/visualization/fixed_resolution.py
@@ -444,9 +444,10 @@
data.update(self.data)
ftypes = dict([(field, "grid") for field in data])
- extra_attrs = dict([(arg, getattr(self, arg, None))
+ extra_attrs = dict([(arg, getattr(self.data_source, arg, None))
for arg in self.data_source._con_args +
self.data_source._tds_attrs])
+ extra_attrs["con_args"] = self.data_source._con_args
extra_attrs["left_edge"] = self.ds.arr([self.bounds[0],
self.bounds[2]])
extra_attrs["right_edge"] = self.ds.arr([self.bounds[1],
diff -r 27f664fe46a4ec9361421167ffb7f963428ac912 -r c453499f3b1a652cd481e179094e53c6fcdbd3cb yt/visualization/particle_plots.py
--- a/yt/visualization/particle_plots.py
+++ b/yt/visualization/particle_plots.py
@@ -33,6 +33,9 @@
class ParticleAxisAlignedDummyDataSource(object):
_type_name = 'Particle'
+ _dimensionality = 2
+ _con_args = ('center', 'axis', 'width', 'fields', 'weight_field')
+ _tds_attrs = ()
_key_fields = []
def __init__(self, center, ds, axis, width, fields,
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