Skip to content

Commit e9bd241

Browse files
author
Stephen Hoover
authored
BUG Add ml and parallel to civis namespace (#123)
The `ml` and `parallel` namespaces weren't part of `civis.__init__.py`'s `__all__`, so users needed to use e.g. `from civis.ml import ModelPipeline` instead of `civis.ml.ModelPipeline`. This change makes `ml` and `parallel` part of the top-level namespace.
1 parent f1318df commit e9bd241

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88

99
### Fixed
1010
- Fixed bug where instantiating a new model via ``ModelPipeline.from_existing`` from an existing model with empty "PARAMS" and "CV_PARAMS" boxes fails (#122).
11+
- Users can now access the ``ml`` and ``parallel`` namespaces from the base ``civis`` namespace.
1112

1213
## 1.6.0 - 2017-07-27
1314
### Changed

civis/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from civis._version import __version__
44
from civis.civis import APIClient, find, find_one
5-
from civis import io
5+
from civis import io, ml, parallel
66

7-
__all__ = ["__version__", "APIClient", "find", "find_one", "io"]
7+
__all__ = ["__version__", "APIClient", "find", "find_one", "io",
8+
"ml", "parallel"]

0 commit comments

Comments
 (0)