Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Update assert statements #2

Merged
merged 1 commit into from
Jan 16, 2021
Merged

Update assert statements #2

merged 1 commit into from
Jan 16, 2021

Conversation

cdce8p
Copy link

@cdce8p cdce8p commented Jan 15, 2021

Assert will always throw a NameError. Adding the string just means that Python asserts that the string is true.
Therefore I would like to change the string to a comment.

>>> assert np, "numpy needs to be installed for this feature"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'np' is not defined

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants