Skip to content

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

Merged
boludo00 merged 3 commits into
masterfrom
hotfix/24-Empty-AssertionError-when-using-np.array
Mar 7, 2019
Merged

Hotfix/24 empty assertion error when using np.array#26
boludo00 merged 3 commits into
masterfrom
hotfix/24-Empty-AssertionError-when-using-np.array

Conversation

@boludo00

@boludo00 boludo00 commented Mar 7, 2019

Copy link
Copy Markdown
Collaborator

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
ceandrade pushed a commit to ceandrade/pyvis that referenced this pull request Jul 10, 2025
…rtionError-when-using-np.array

Hotfix/24 empty assertion error when using np.array
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