Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix 'inhomogeneous shape' error topology on adsorption #102

Conversation

blackrabbit17
Copy link

numpy now treats initialising inhomogeneous shape arrays by throwing an exception. This means that the topology code in the adsorption module now throws an exception with the sample code in the documentation.

Exception has occurred: ValueError
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (457,) + inhomogeneous part.

By treating passing dtype=object, numpy will allow the creation of inhomogeneous shaped arrays - This PR fixes the module and allows the sample code to run successfully,

@blackrabbit17 blackrabbit17 requested a review from jboes as a code owner January 18, 2023 01:55
@blackrabbit17 blackrabbit17 deleted the fix_topology_on_adsorption branch January 18, 2023 01:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant