1. Manfred Moitzi
  2. svgwrite
  3. Pull requests

Pull requests

#5 Merged
Repository
qbilius
Branch
default
Repository
mozman
Branch
default

fixed if statements because they fail with numpy arrays

Author
  1. Jonas Kubilius
Reviewers
Description

For example, if size=np.array([10, 20]), if size: statement results in the following:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Also, it is just a good practice to use if x is None if x can be None.

  • Learn about pull requests

Comments (1)