https://github.com/GPflow/GPflow
Revision 0bf75f76f64fe58339ec9ef463c79fcf81d379da authored by st-- on 29 January 2019, 11:27:39 UTC, committed by GitHub on 29 January 2019, 11:27:39 UTC
The AutoBuild metaclass that is present in all Parameterized subclasses (e.g. models, kernels, likelihoods etc.) overwrote the `__init__` function and thereby replaced the signature with `*args, **kwargs`, which meant that the API documentation and command-line/IDE auto-completion was broken. This PR makes use of the "decorator" package (slightly hacked) to restore the original signatures (while allowing autobuild to still be passed as an additional keyword argument).
1 parent 5166d0f
Tip revision: 0bf75f76f64fe58339ec9ef463c79fcf81d379da authored by st-- on 29 January 2019, 11:27:39 UTC
Fix AutoBuild metaclass to not screw up method signatures (#907)
Fix AutoBuild metaclass to not screw up method signatures (#907)
Tip revision: 0bf75f7
File | Mode | Size |
---|---|---|
core | ||
models | ||
multioutput | ||
params | ||
saver | ||
training | ||
__init__.py | -rw-r--r-- | 1.7 KB |
_settings.py | -rw-r--r-- | 4.9 KB |
_version.py | -rw-r--r-- | 597 bytes |
actions.py | -rw-r--r-- | 11.9 KB |
conditionals.py | -rw-r--r-- | 18.2 KB |
decors.py | -rw-r--r-- | 7.2 KB |
dispatch.py | -rw-r--r-- | 435 bytes |
expectations.py | -rw-r--r-- | 40.2 KB |
features.py | -rw-r--r-- | 5.0 KB |
gpflowrc | -rw-r--r-- | 484 bytes |
kernels.py | -rw-r--r-- | 30.7 KB |
kullback_leiblers.py | -rw-r--r-- | 3.8 KB |
likelihoods.py | -rw-r--r-- | 25.8 KB |
logdensities.py | -rw-r--r-- | 3.2 KB |
mean_functions.py | -rw-r--r-- | 6.0 KB |
misc.py | -rw-r--r-- | 7.4 KB |
priors.py | -rw-r--r-- | 5.4 KB |
probability_distributions.py | -rw-r--r-- | 1.7 KB |
quadrature.py | -rw-r--r-- | 9.7 KB |
session_manager.py | -rw-r--r-- | 4.4 KB |
test_util.py | -rw-r--r-- | 3.6 KB |
transforms.py | -rw-r--r-- | 12.5 KB |
Computing file changes ...