Skip to content

The use of starred expressions to create data detracts from understanding required data structure  #12929

@maxshowarth

Description

@maxshowarth

>>> data = f(*np.meshgrid(x, y, z, indexing='ij', sparse=True))

Starred expressions can't be readily examined. For users who are attempting to familiarize themselves with the required data structures for RegularGridInterpolator, it adds unnecessary additional complexity.

I would suggest creating the meshgrid outside of the function call so that the purpose of the starred expression is more easily understood.

Despite the description of the structure of data below, it is difficult to adapt to unique user use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions