Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/helper_scripts/show_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def print_all_fields(fl):
print()


ds.index
print_all_fields(ds.field_info)


Expand Down
1 change: 0 additions & 1 deletion doc/source/analyzing/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ field, like its default units or the source code for it.
.. code-block:: python

ds = yt.load("my_data")
ds.index
print(ds.field_info["gas", "pressure"].get_units())
print(ds.field_info["gas", "pressure"].get_source())

Expand Down
1 change: 0 additions & 1 deletion doc/source/cookbook/yt_gadget_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"bbox = [[-bbox_lim, bbox_lim], [-bbox_lim, bbox_lim], [-bbox_lim, bbox_lim]]\n",
"\n",
"ds = yt.load(fname, unit_base=unit_base, bounding_box=bbox)\n",
"ds.index\n",
"ad = ds.all_data()"
]
},
Expand Down
3 changes: 0 additions & 3 deletions doc/source/examining/loading_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ to the z direction.

.. code-block:: python

ds.index
ad = ds.all_data()
print(ds.field_info["raw", "Ex"].nodal_flag)
print(ad["raw", "Ex"].shape)
Expand Down Expand Up @@ -880,7 +879,6 @@ direction.

.. code-block:: python

ds.index
ad = ds.all_data()
print(ds.field_info["enzo", "Ex"].nodal_flag)
print(ad["enzo", "Ex"].shape)
Expand Down Expand Up @@ -928,7 +926,6 @@ types will be known as soon as the dataset index is created.
.. code-block:: python

ds = yt.load("ENZOP_DD0140/ENZOP_DD0140.block_list")
ds.index
print(ds.particle_types)
print(ds.particle_type_counts)
print(ds.r["dark", "particle_position"])
Expand Down
4 changes: 1 addition & 3 deletions doc/source/faq/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,10 @@ logged, you could type:
.. code-block:: python

ds = load("my_data")
ds.index
ds.field_info["gas", "density"].take_log = False

From that point forward, data products such as slices, projections, etc., would
be presented in linear space. Note that you have to instantiate ds.index before
you can access ds.field info. For more information see the documentation on
be presented in linear space. For more information see the documentation on
:ref:`fields` and :ref:`creating-derived-fields`.

.. _faq-new-field:
Expand Down
1 change: 0 additions & 1 deletion yt/visualization/volume_rendering/tests/test_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def test_composite_vr(self):
dd = ds.sphere(ds.domain_center, 0.45 * ds.domain_width[0])

# Trigger creation of index
ds.index
ds.field_info[ds.field_list[0]].take_log = False

sc = Scene()
Expand Down
1 change: 0 additions & 1 deletion yt/visualization/volume_rendering/tests/test_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def test_points_vr(self):
dd = ds.sphere(ds.domain_center, 0.45 * ds.domain_width[0])

# Trigger creation of index
ds.index
ds.field_info[ds.field_list[0]].take_log = False

sc = Scene()
Expand Down
1 change: 0 additions & 1 deletion yt/visualization/volume_rendering/tests/test_zbuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def test_composite_vr(self):
ds = fake_random_ds(64)
dd = ds.sphere(ds.domain_center, 0.45 * ds.domain_width[0])
# Trigger creation of index
ds.index
ds.field_info[ds.field_list[0]].take_log = False

sc = Scene()
Expand Down
Loading