[yt-svn] commit/yt: smumford: Add GDF simulation_parameters attributes to DataSet.parameters
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue May 13 05:47:10 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/4d1488b8fa47/
Changeset: 4d1488b8fa47
Branch: yt-3.0
User: smumford
Date: 2014-05-13 14:41:59
Summary: Add GDF simulation_parameters attributes to DataSet.parameters
Affected #: 1 file
diff -r 849ef318fc593409bd3c7c3cf646e9b9eccf8af8 -r 4d1488b8fa476b1e6f5cb90c16312fce75abe34e yt/frontends/gdf/data_structures.py
--- a/yt/frontends/gdf/data_structures.py
+++ b/yt/frontends/gdf/data_structures.py
@@ -206,6 +206,7 @@
else:
self.data_software = "unknown"
sp = self._handle["/simulation_parameters"].attrs
+ self.parameters.update(sp)
self.domain_left_edge = sp["domain_left_edge"][:]
self.domain_right_edge = sp["domain_right_edge"][:]
self.domain_dimensions = sp["domain_dimensions"][:]
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