Skip to content

Conversation

@IshaanDesai
Copy link
Member

From the discussion in #236, it emerged that there is confusion about the acceptable ways to provide multidimensional data structures to the API. The examples in the docstrings primarily show that NumPy arrays can be used, but the API also accepts a list of lists, or a list of tuples. This PR modifies the docstrings to clearly state this flexibility of the API.

@IshaanDesai IshaanDesai self-assigned this Jun 15, 2025
@IshaanDesai IshaanDesai added the documentation Improvements or additions to documentation label Jun 15, 2025
@IshaanDesai IshaanDesai requested review from MakisH and davidscn June 15, 2025 13:07
Copy link
Member

@davidscn davidscn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely helps.
The individual changes/examples make sense.

What about the map_and_read_data, which triggered the discussion? It also needs an example.

I have not checked if anything else needs a similar example, but since set_mesh_vertices is the first one to call, it would be kind of expected that the same applies to all.

@IshaanDesai
Copy link
Member Author

What about the map_and_read_data, which triggered the discussion? It also needs an example.

I'll add an example here only.

@IshaanDesai IshaanDesai merged commit 3d2e97f into develop Jun 16, 2025
14 checks passed
@IshaanDesai IshaanDesai deleted the update-docstrings branch June 16, 2025 10:40
@IshaanDesai IshaanDesai mentioned this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

map_and_read_data does not flatten coordinate array before passing it to C++

4 participants