[yt-users] yt.utilities.amr_utils

Renyue Cen cen at astro.princeton.edu
Sun Jan 13 09:18:12 PST 2013


I am trying to compute gridded density of some subset of particles.
So I tried to import some modules first in the python script as follows:

from yt.data_objects.field_info_container import \
    FieldInfoContainer, \
    NullFunc, \
    TranslationFunc, \
    FieldInfo, \
    ValidateParameter, \
    ValidateDataField, \
    ValidateProperty, \
    ValidateSpatial, \
import yt.data_objects.universal_fields
from yt.utilities.physical_constants import mh
from yt.funcs import *
import yt.utilities.amr_utils as amr_utils

But I got this error message:

Traceback (most recent call last):
  File "SFR.py", line 28, in <module>
    import yt.utilities.amr_utils as amr_utils
ImportError: No module named amr_utils

Am I doing something wrong?


More information about the yt-users mailing list