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

Fix bug where Adjacency can't load .h5 file using a Path object #383

Open
ejolly opened this issue Mar 30, 2021 · 0 comments
Open

Fix bug where Adjacency can't load .h5 file using a Path object #383

ejolly opened this issue Mar 30, 2021 · 0 comments
Labels

Comments

@ejolly
Copy link
Collaborator

ejolly commented Mar 30, 2021

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-62-2af95153a257> in <module>
----> 1 Adjacency((adjs[ep_num]))

~/Documents/pypackages/nltools/nltools/data/adjacency.py in __init__(self, data, Y, matrix_type, labels, **kwargs)
    115             self.is_single_matrix = False
    116         elif (isinstance(data, str) or isinstance(data, Path)) and (
--> 117             (".h5" in data) or (".hdf5" in data)
    118         ):
    119             f = dd.io.load(data)

TypeError: argument of type 'PosixPath' is not iterable
@ejolly ejolly added the bug label Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant