Skip to content

Commit

Permalink
STY: add __all__ to cluster/hierarchy.py. Does not change cluster nam…
Browse files Browse the repository at this point in the history
…espace.
  • Loading branch information
rgommers committed Mar 10, 2011
1 parent f509a5f commit 8e73d99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scipy/cluster/hierarchy.py
Expand Up @@ -171,6 +171,16 @@
_cpy_linkage_methods = set(_cpy_non_euclid_methods.keys()).union(
set(_cpy_euclid_methods.keys()))

__all__ = ['ClusterNode', 'average', 'centroid', 'complete', 'cophenet',
'correspond', 'dendrogram', 'fcluster', 'fclusterdata',
'from_mlab_linkage', 'inconsistent', 'is_isomorphic',
'is_monotonic', 'is_valid_im', 'is_valid_linkage', 'leaders',
'leaves_list', 'linkage', 'maxRstat', 'maxdists', 'maxinconsts',
'median', 'num_obs_linkage', 'set_link_color_palette', 'single',
'to_mlab_linkage', 'to_tree', 'ward', 'warnings', 'weighted',

This comment has been minimized.

Copy link
@WarrenWeckesser

WarrenWeckesser May 22, 2011

I don't think 'warnings' should be here. There is code at the beginning of the file that tries to import warnings, and handles the case where that fails. That suggests this is pre-python 2.1 code, so 'warnings' was certainly never intended to be part of the public API.

'distance']


try:
import warnings
def _warning(s):
Expand Down

0 comments on commit 8e73d99

Please sign in to comment.