-
Notifications
You must be signed in to change notification settings - Fork 767
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
Clean up the __init__ #893
Conversation
import sys | ||
|
||
from gtsam import gtsam, utils | ||
from gtsam.gtsam import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR @varunagrawal. While we're updating this, we probably want to remove this wildcard import too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed, and I think is generally OK for pybind11 modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup this is needed for proper functioning of the module.
python/CMakeLists.txt
Outdated
|
||
pybind_wrap(gtsam_py # target | ||
pybind_wrap(${GTSAM_TARGET} # target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTSAM_PYTHON_TARGET
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah great point!
python/CMakeLists.txt
Outdated
@@ -122,7 +124,7 @@ if(GTSAM_UNSTABLE_BUILD_PYTHON) | |||
gtsam::CameraSetCal3Fisheye | |||
gtsam::KeyPairDoubleMap) | |||
|
|||
pybind_wrap(gtsam_unstable_py # target | |||
pybind_wrap(${GTSAM_UNSTABLE_TARGET} # target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
import sys | ||
|
||
from gtsam import gtsam, utils | ||
from gtsam.gtsam import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed, and I think is generally OK for pybind11 modules.
Simple PR to do some wrapper clean up.