Document tricks to allow direct import from xxx

release/4.3a0
Fan Jiang 2020-08-18 11:29:13 -04:00
parent 09c1e3b3f4
commit 0c3b08ef4c
3 changed files with 9 additions and 0 deletions

View File

@ -1 +1,4 @@
# This trick is to allow direct import of sub-modules
# without this, we can only do `from gtsam.gtsam.imuBias import X`
# with this trick, we can do `from gtsam.imuBias import X`
from .gtsam.imuBias import * from .gtsam.imuBias import *

View File

@ -1 +1,4 @@
# This trick is to allow direct import of sub-modules
# without this, we can only do `from gtsam.gtsam.noiseModel import X`
# with this trick, we can do `from gtsam.noiseModel import X`
from .gtsam.noiseModel import * from .gtsam.noiseModel import *

View File

@ -1 +1,4 @@
# This trick is to allow direct import of sub-modules
# without this, we can only do `from gtsam.gtsam.symbol_shorthand import X`
# with this trick, we can do `from gtsam.symbol_shorthand import X`
from .gtsam.symbol_shorthand import * from .gtsam.symbol_shorthand import *