forked from mattloper/chumpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix relative imports after pip installation (mattloper#11)
These namespace relative imports work in chumpy tests, but were causing import errors like this one: ``` File "/home/circleci/repo/blmath/geometry/transform/test_composite.py", line 172, in test_forward_reverse_equivalence transform.rotate(np.array([1., 2., 3.])) File "/home/circleci/repo/blmath/geometry/transform/composite.py", line 237, in rotate from blmath.geometry.transform.rodrigues import as_rotation_matrix File "/home/circleci/repo/blmath/geometry/transform/rodrigues.py", line 2, in <module> import chumpy as ch File "/home/circleci/repo/venv/lib/python2.7/site-packages/chumpy/__init__.py", line 1, in <module> from .ch import * File "/home/circleci/repo/venv/lib/python2.7/site-packages/chumpy/ch.py", line 1310, in <module> from . import ch_ops File "/home/circleci/repo/venv/lib/python2.7/site-packages/chumpy/ch_ops.py", line 47, in <module> from . import ch ImportError: cannot import name ch ``` # Conflicts: # Makefile
- Loading branch information
1 parent
db6eaf8
commit b3a5953
Showing
5 changed files
with
88 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.