[yt-svn] commit/yt: xarthisius: [frontends/art] remove duplicate import of amr_utils
Bitbucket
commits-noreply at bitbucket.org
Tue Jul 10 19:23:24 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/533f2b80482f/
changeset: 533f2b80482f
branch: yt
user: xarthisius
date: 2012-07-11 04:20:45
summary: [frontends/art] remove duplicate import of amr_utils
affected #: 1 file
diff -r 30fe4db8b2362992de5869b6535b328ed8f972bf -r 533f2b80482f95d35ed5fa4d9e184ed8afc1ea7e yt/frontends/art/fields.py
--- a/yt/frontends/art/fields.py
+++ b/yt/frontends/art/fields.py
@@ -44,7 +44,6 @@
ARTFieldInfo = FieldInfoContainer.create_with_fallback(FieldInfo)
add_field = ARTFieldInfo.add_field
-import yt.utilities.amr_utils as amr_utils
import numpy as na
#these are just the hydro fields
@@ -179,7 +178,7 @@
di = dd==0.0
#dd[di] = -1.0
tr = dg/dd
- #tr[na.isnan(tr)] = 0.0
+ #tr[na.isnan(tr)] = 0.0
#if data.id==460:
# import pdb;pdb.set_trace()
tr /= data.pf.conversion_factors["GasEnergy"]
@@ -265,7 +264,7 @@
return tr
else:
return tr*0.0
-
+
add_field("particle_cell_mass_dm", function=mass_dm,
validators=[ValidateSpatial(0)])
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