[yt-svn] commit/yt: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Nov 23 11:05:35 PST 2015


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/9568be201973/
Changeset:   9568be201973
Branch:      yt
User:        brittonsmith
Date:        2015-11-17 13:23:58+00:00
Summary:     Adding attributes to allow particle plot frbs to use save_as_dataset.
Affected #:  1 file

diff -r 90f900be7a36433fdd48941cae4bc91066ff5c76 -r 9568be20197346a171e3e1bb6b33c869265beeed 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,


https://bitbucket.org/yt_analysis/yt/commits/0570ce771245/
Changeset:   0570ce771245
Branch:      yt
User:        brittonsmith
Date:        2015-11-17 13:24:27+00:00
Summary:     We weren't saving _con_args attributes correctly for frbs.
Affected #:  1 file

diff -r 9568be20197346a171e3e1bb6b33c869265beeed -r 0570ce7712459072e6f651fda80c359a8da0ffd3 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],


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