Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

default dtype raises ValueError when initializing a Network #193

Open
la-bell opened this issue Feb 27, 2025 · 0 comments
Open

default dtype raises ValueError when initializing a Network #193

la-bell opened this issue Feb 27, 2025 · 0 comments

Comments

@la-bell
Copy link

la-bell commented Feb 27, 2025

Potentially similar to issue #88 but seems like a distinct issue.

The __init__ method for the Network class creates a node_idx attribute as a pd.Series whose dtype is specified as "int". This yields a Series with int64 as its dtype. I don't know if this is due to a version update in pandas or numpy or something else, but it breaks the call to cyaccess, which expects node_idx to be long but is now getting long long. I tried coercing all inputs to np.int32, but it did not resolve the issue. The problem seems to be the dtype="int" in line 86 of network.py. If I change it to dtype=np.int32 my code executes. This seems like a more explicit specification in any case, so it may be preferable to simply having "int".

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

No branches or pull requests

1 participant