Package topo :: Package pattern
[hide private]
[frames] | no frames]

Source Code for Package topo.pattern

 1  """ 
 2  Objects capable of generating a two-dimensional array of values. 
 3   
 4  Such patterns can be used as input to a Sheet, as initial or fixed 
 5  weight patterns, or for any other purpose where a two-dimensional 
 6  pattern may be needed.  Any new PatternGenerator classes added to this 
 7  directory will automatically become available for any model. 
 8   
 9  $Id: __init__.py 8943 2008-08-21 13:47:25Z ceball $ 
10  """ 
11  __version__='$Revision: 8943 $' 
12   
13  # Automatically discover all .py files in this directory, and import classes from basic.py.  
14  import os,fnmatch 
15  from basic import * 
16  __all__ = basic.__all__ + [f.split('.py')[0] for f in os.listdir(__path__[0]) if fnmatch.fnmatch(f,'[!._]*.py')] 
17  del f,os,fnmatch 
18   
19  # CB: temporarily hide the audio module until it works and is properly 
20  # supported by the GUI etc. 
21  __all__.remove('audio') 
22