Skip to content

The data extraction script in EB-C7 doesn't working #634

@lainme

Description

@lainme

Commit: 2ee36d7 (update to date version)

After the simulation of EB-C7 finishes, I tried to use pp.py to extract the profile, however, the script shows the following error

Traceback (most recent call last):
  File "/home/lainme/code/amrex/PeleC/build/Exec/RegTests/EB-C7/tests/eb-c7/pp.py", line 49, in <module>
    srt = np.argsort(ray["x"])
                     ~~~^^^^^
  File "/home/lainme/.local/lib/python3.11/site-packages/yt/data_objects/data_containers.py", line 229, in __getitem__
    f = self._determine_fields([key])[0]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lainme/.local/lib/python3.11/site-packages/yt/data_objects/data_containers.py", line 1465, in _determine_fields
    finfo = self.ds._get_field_info(field)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lainme/.local/lib/python3.11/site-packages/yt/data_objects/static_output.py", line 1009, in _get_field_info
    raise ValueError(
ValueError: The requested field name 'x' is ambiguous and corresponds to any one of the following field types:
 ['boxlib', 'index', 'gas']
Please specify the requested field as an explicit tuple (<ftype>, <fname>).

What's the possible reason of the issue? Is this related to the version of yt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions