[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Apr 10 17:25:36 PDT 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/0ca058153423/
Changeset: 0ca058153423
Branch: yt
User: Jared
Date: 2017-04-10 13:32:04+00:00
Summary: Fixed an issue with the dark energy params not actually being set in the gadget frontend, meaning the defaults were always being used.
Affected #: 1 file
diff -r 6261622d0d72a3f7211d185cc8593a2fd05470ef -r 0ca0581534236c928ea5c3b8de0a64ac3e36523f yt/frontends/gadget/data_structures.py
--- a/yt/frontends/gadget/data_structures.py
+++ b/yt/frontends/gadget/data_structures.py
@@ -125,6 +125,12 @@
if units_override is not None:
raise RuntimeError("units_override is not supported for GadgetDataset. "+
"Use unit_base instead.")
+
+ # Set dark energy parameters before cosmology object is created
+ self.use_dark_factor = use_dark_factor
+ self.w_0 = w_0
+ self.w_a = w_a
+
super(GadgetDataset, self).__init__(
filename, dataset_type=dataset_type, unit_system=unit_system,
n_ref=n_ref, over_refine_factor=over_refine_factor,
https://bitbucket.org/yt_analysis/yt/commits/3fb22b911041/
Changeset: 3fb22b911041
Branch: yt
User: ngoldbaum
Date: 2017-04-11 00:25:33+00:00
Summary: Merged in polaris42/yt (pull request #2577)
Dynamical Dark Energy Error Fix
Approved-by: yt-fido <yt.fido at gmail.com>
Affected #: 1 file
diff -r 98c877e47f5ce8bbec42b24b5a5c1f1ed8782db3 -r 3fb22b911041efd493b458070abacbf2031e817f yt/frontends/gadget/data_structures.py
--- a/yt/frontends/gadget/data_structures.py
+++ b/yt/frontends/gadget/data_structures.py
@@ -125,6 +125,12 @@
if units_override is not None:
raise RuntimeError("units_override is not supported for GadgetDataset. "+
"Use unit_base instead.")
+
+ # Set dark energy parameters before cosmology object is created
+ self.use_dark_factor = use_dark_factor
+ self.w_0 = w_0
+ self.w_a = w_a
+
super(GadgetDataset, self).__init__(
filename, dataset_type=dataset_type, unit_system=unit_system,
n_ref=n_ref, over_refine_factor=over_refine_factor,
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