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

Hotfix/24 empty assertion error when using np.array #26

Merged
merged 3 commits into from
Mar 7, 2019

Conversation

boludo00
Copy link
Collaborator

@boludo00 boludo00 commented Mar 7, 2019

This closes #24 by adding a different check

for node in nodes:
            # check if node is `number-like`
            try:
                node = int(node)
                self.add_node(node, **nd[node])
            except:
                # or node could be string
                assert isinstance(node, str)
                self.add_node(node, **nd[node])

@boludo00 boludo00 merged commit e57c353 into master Mar 7, 2019
@boludo00 boludo00 deleted the hotfix/24-Empty-AssertionError-when-using-np.array branch March 7, 2019 00:54
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.

Empty AssertionError when using np.array
1 participant