Module Import alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias TryExcept body Import alias handlers ExceptHandler body Assign NameStore NameLoad orelse If CompareGtE Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str body Assign NameStore Num orelse Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad ListLoad Num Num ListLoad Num Num Num ListLoad Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad ListLoad Num Num ListLoad Num Num Num ListLoad Num BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad ListLoad Num Num Num ListLoad Num AttributeLoad NameLoad attr ListLoad Num BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Num Num Num Num Num Num Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num attr Index Str Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str ListLoad Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Num decorator_list Expr Call AttributeLoad NameLoad attr TupleLoad Str Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str TupleLoad Str Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore BinOpMult SubscriptLoad Call AttributeLoad NameLoad attr Num ExtSlice Slice Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str ListLoad Str keyword ListLoad Num Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args defaults body ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr BinOpMult SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore BinOpMult Num BinOpAdd SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str ListLoad Str keyword ListLoad Num Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str
N/A N/A os N/A sys copy deepcopy distutils.version LooseVersion N/A h5py N/A numpy np astropy.tests.helper pytest util.functions random_id model Model model.tests.test_helpers get_realistic_test_dust N/A CartesianGrid SphericalPolarGrid CylindricalPolarGrid AMRGrid OctreeGrid N/A N/A N/A yt N/A N/A N/A N/A YT_VERSION None N/A N/A N/A N/A LooseVersion N/A yt __version__ N/A LooseVersion 3 N/A N/A YT_VERSION 3 N/A N/A YT_VERSION 2 N/A DATA N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data N/A ALL_GRID_TYPES N/A car amr oct TestToYt N/A object N/A setup_method N/A N/A self method N/A N/A N/A N/A self grid N/A N/A N/A N/A self grid N/A car N/A CartesianGrid N/A -1.0 1.0 N/A -2.0 0.0 2.0 N/A -3.0 -1.0 1.0 3.0 N/A N/A N/A self grid N/A cyl N/A CylindricalPolarGrid N/A 0.0 1.0 N/A -1.0 0.0 1.0 N/A 0.0 N/A 0.75 N/A np pi N/A 1.25 N/A np pi N/A 2.0 N/A np pi N/A N/A N/A self grid N/A sph N/A SphericalPolarGrid N/A 0.0 0.5 1.0 N/A 0.0 N/A np pi N/A 0.0 N/A 0.75 N/A np pi N/A 1.25 N/A np pi N/A 2.0 N/A np pi N/A N/A N/A self grid N/A amr N/A AMRGrid N/A level N/A N/A N/A N/A self grid N/A amr add_level N/A grid N/A N/A level add_grid N/A N/A N/A grid xmin N/A grid xmax N/A -1.0 1.0 N/A N/A N/A grid ymin N/A grid ymax N/A -1.0 1.0 N/A N/A N/A grid zmin N/A grid zmax N/A -1.0 1.0 N/A N/A N/A grid nx N/A grid ny N/A grid nz N/A 8 6 4 N/A refined N/A 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 N/A N/A N/A self grid N/A oct N/A OctreeGrid 0.0 0.0 0.0 10.0 10.0 10.0 N/A N/A N/A N/A np array refined astype bool N/A N/A self density N/A N/A N/A N/A self density N/A car N/A N/A np ones N/A 3 2 1 N/A N/A N/A self density N/A cyl N/A N/A np ones N/A 3 2 1 N/A N/A N/A self density N/A sph N/A N/A np ones N/A 3 1 2 N/A amr_q N/A deepcopy N/A N/A self grid N/A amr N/A N/A N/A N/A N/A N/A N/A amr_q levels N/A 0 grids N/A 0 quantities N/A density N/A N/A np ones N/A 4 6 8 N/A N/A N/A self density N/A amr N/A amr_q N/A density N/A N/A N/A self density N/A oct N/A N/A np ones N/A len refined N/A test_to_yt N/A N/A self tmpdir grid_type N/A N/A yt.mods ProjectionPlot N/A g N/A N/A self grid N/A grid_type N/A N/A g N/A density N/A N/A N/A N/A N/A g N/A density append N/A N/A self density N/A grid_type N/A pf N/A N/A g to_yt N/A p N/A ProjectionPlot pf x N/A density center c origin native N/A N/A N/A p save N/A N/A N/A tmpdir join test.png strpath N/A N/A N/A N/A pytest mark parametrize grid_type ALL_GRID_TYPES N/A N/A N/A N/A pytest mark skipif YT_VERSION is None test_from_yt N/A N/A tmpdir N/A N/A yt load N/A ds N/A load N/A N/A N/A os path join DATA DD0010 moving7_0010 _dust_density N/A N/A field data N/A N/A N/A N/A N/A N/A N/A data N/A density in_units g/cm**3 0.01 N/A N/A N/A N/A ds add_field N/A gas dust_density function _dust_density units g/cm**3 N/A amr N/A N/A AMRGrid from_yt ds quantity_mapping N/A density N/A gas dust_density N/A m N/A Model N/A N/A N/A m set_amr_grid amr N/A N/A N/A m add_density_grid N/A amr N/A density N/A get_realistic_test_dust N/A s N/A N/A m add_point_source N/A N/A s luminosity 1000 N/A N/A s temperature 1000 N/A N/A N/A m set_n_initial_iterations 3 N/A N/A N/A m set_n_photons initial 100000.0 imaging 0 N/A N/A N/A m set_propagation_check_frequency 1 N/A N/A N/A m set_copy_input False N/A input_file N/A N/A N/A tmpdir join test.rtin strpath N/A output_file N/A N/A N/A tmpdir join test.rtout strpath N/A N/A N/A m write input_file N/A N/A N/A m run output_file N/A N/A N/A N/A pytest mark skipif YT_VERSION is None or YT_VERSION < 3 test_axis_ordering_cartesian N/A N/A N/A N/A yt_compat get_frb N/A x N/A N/A np linspace -1 1 9 N/A y N/A N/A np linspace -2 2 17 N/A z N/A N/A np linspace -3 3 33 N/A density N/A N/A N/A N/A np arange 32 N/A N/A N/A None N/A None N/A N/A np ones N/A 32 16 8 N/A g N/A CartesianGrid x y z N/A N/A g N/A density N/A N/A N/A N/A N/A g N/A density append density yt.mods ProjectionPlot SlicePlot N/A pf N/A N/A g to_yt N/A N/A iz z N/A enumerate N/A g z N/A N/A prj N/A SlicePlot pf z N/A density center N/A 0.0 0.0 z N/A N/A N/A N/A np testing assert_allclose N/A N/A N/A get_frb prj density min iz N/A N/A N/A N/A np testing assert_allclose N/A N/A N/A get_frb prj density max iz N/A N/A N/A N/A pytest mark skipif YT_VERSION is None test_axis_ordering_amr N/A N/A N/A N/A yt_compat get_frb N/A g N/A AMRGrid N/A level N/A N/A g add_level N/A grid N/A N/A level add_grid N/A N/A N/A grid xmin N/A grid xmax N/A -1 1 N/A N/A N/A grid ymin N/A grid ymax N/A -2 2 N/A N/A N/A grid zmin N/A grid zmax N/A -3 3 N/A N/A N/A grid nx N/A grid ny N/A grid nz N/A 8 16 32 N/A N/A N/A grid quantities N/A density N/A N/A N/A N/A N/A N/A grid quantities N/A density append N/A N/A N/A N/A np arange N/A grid nz N/A N/A N/A None N/A None N/A N/A np ones N/A N/A grid nz N/A grid ny N/A grid nx yt.mods ProjectionPlot SlicePlot N/A pf N/A N/A g to_yt N/A zw N/A N/A np linspace -3 3 33 N/A zcen N/A 0.5 N/A N/A zw N/A 1 N/A zw N/A -1 N/A N/A iz z N/A enumerate zcen N/A N/A prj N/A SlicePlot pf z N/A density center N/A 0.0 0.0 z N/A N/A N/A N/A np testing assert_allclose N/A N/A N/A get_frb prj density min iz N/A N/A N/A N/A np testing assert_allclose N/A N/A N/A get_frb prj density max iz N/A N/A N/A N/A pytest mark skipif YT_VERSION is None