Skip to content

Fix the handling of arguments in the constructor of GridTensor#5

Open
gillioz wants to merge 1 commit intoMauricioSalazare:masterfrom
gillioz:bugfix/grid-constructor
Open

Fix the handling of arguments in the constructor of GridTensor#5
gillioz wants to merge 1 commit intoMauricioSalazare:masterfrom
gillioz:bugfix/grid-constructor

Conversation

@gillioz
Copy link

@gillioz gillioz commented Dec 3, 2025

With the current logic, the following call to the constructor of GridTensor does not achieve what it should:

GridTensor(nodes_frame=nodes_df, lines_frame=lines_df)

The reason is that if the keywords node_file_path and lines_file_path are both null, then the default grid is used, instead of using the dataframes passed as arguments.

This PR fixes the problem with one line of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant