501552a65a 
								
							
								 
							
						 
						
							
							
								
								* Added zip_gen() to simulate the effect of built-in zip() function, but  
							
							... 
							
							
 
							
							implemented as a generator rather than yielding the list right away.
  This is used mainly in loops, where we don't want to generate all the
  elements due to memory concerns. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								606214eb66 
								
							
								 
							
						 
						
							
							
								
								* Changing all `isinstance(STUFF, str)' to `isinstance(STUFF, basestring)'  
							
							... 
							
							
 
							
							for future-proofing this code. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								6656d3d5e3 
								
							
								 
							
						 
						
							
							
								
								* In module text_input: Added head() and tail() to emulate the basic  
							
							... 
							
							
 
							
							behavior of UNIX commands with the same name.
  Output lines are already split into a list of strings. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								41079fd92c 
								
							
								 
							
						 
						
							
							
								
								* sugar: Added is_iterable().  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								14303979f1 
								
							
								 
							
						 
						
							
							
								
								* Recorded down some notes/caveat for init_interactive().  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								4194344891 
								
							
								 
							
						 
						
							
							
								
								* init_interactive() returns True if interactive session is detected; False  
							
							... 
							
							
 
							
							otherwise. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								1674bfd256 
								
							
								 
							
						 
						
							
							
								
								* Added workaround so at least interactive python detection works  
							
							... 
							
							
 
							
							(although not perfectly) in python <= 2.5. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								f8a101fbe9 
								
							
								 
							
						 
						
							
							
								
								* Added comment_char option for text_input object creation.  
							
							... 
							
							
 
							
							* Memory leak bugfix: Use instance method weakref. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								5666280a45 
								
							
								 
							
						 
						
							
							
								
								* Alias "|" operator to "+" operator.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								3698671bed 
								
							
								 
							
						 
						
							
							
								
								* Added: fortran_bin_file.peek_next_rec_len() to fetch the next record length  
							
							... 
							
							
 
							
							while not advancing the read pointer to that record yet. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								050e2414ef 
								
							
								 
							
						 
						
							
							
								
								* Added faster LDdec1 for 1-based indexing.  
							
							... 
							
							
 
							
							Tested through N=1000. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								d04ea8cbea 
								
							
								 
							
						 
						
							
							
								
								* Completing jskip formula for LD that is analogous to the jskip formula for  
							
							... 
							
							
 
							
							UD matrix format. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								93a89d2606 
								
							
								 
							
						 
						
							
							
								
								* Created array indexer for "upper diagonal" indexing mode.  
							
							... 
							
							
 
							
							Apparently I was able to create the non-iterative version of UDdec (1-based
  indices). 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								961a802326 
								
							
								 
							
						 
						
							
							
								
								* Keep a copy of my symmetric array indexer worksheet in GIT.  
							
							... 
							
							
 
							
							Original signature:
    -rw-r--r-- 1 wirawan0 wirawan0 1380 2010-04-27 15:55 symmetrix-array-index.py
    b873ece4610483b3cd5290c6ddbc7426  symmetrix-array-index.py 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								7017fdc6af 
								
							
								 
							
						 
						
							
							
								
								* Committing all dirty work to CVS. We are migrating to GIT.  
							
							... 
							
							
 
							
							Beware: changes in this commit may or may not work properly. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								8ebf1e422e 
								
							
								 
							
						 
						
							
							
								
								* Add important warning. Maybe in the future we need to use operator "|"  
							
							... 
							
							
 
							
							and append the search paths to _list_? 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								81e2ada60c 
								
							
								 
							
						 
						
							
							
								
								* Allow comment character to be changed from "#" using the  
							
							... 
							
							
 
							
							instance.comment_char attribute. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								3f38cbfb34 
								
							
								 
							
						 
						
							
							
								
								* Allow printing of numpy.matrix objects.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								6fb10829e0 
								
							
								 
							
						 
						
							
							
								
								* Added Parameters._get_() method.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								aad559d86b 
								
							
								 
							
						 
						
							
							
								
								* Class Parameters: important change of behavior for more safety to avoid  
							
							... 
							
							
 
							
							potential confusion.
* Detail of the important changes:
  1) by default now the function's local variables are not included in the
     lookup chain. Use _localvars_ flag if you insist on doing that; but
     be aware of the caveat (see Parameters' documentation).
  2) the default _kwparam_ and _userparam_ names are now passed on to the
     child Parameters object instead of the override values given through
     the _create_ function argument.
     Rationale: To begin with, the default names defined during the creation
     of the parent Parameters object should be used by *all* the relevant
     functions.
     Overrides should be regarded as exceptional rather than common cases.
  3) Value overrides (_kwparam_, _userparam_, etc.) in _create_ must now
     be specified in keyword=value manner rather than as positional argument.
     Rationale: Those overrides must be made conspicuous.
     The keyword=value approach also makes the code more resilient to minor
     API changes.
     All unnamed parameters are supposed to be low-priority defaults. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								4aff740f55 
								
							
								 
							
						 
						
							
							
								
								* Parameters value lookup: use try..except EAFP rather LBYL approach.  
							
							... 
							
							
 
							
							* Add simple checks for _p, _opts_ default arguments in case they are not
  indexable/dict-like objects. This is needed to avoid bizzare error messages
  later then the Parameters object is in use. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								1181a7e516 
								
							
								 
							
						 
						
							
							
								
								* Add descriptive error message.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								ceeafa811a 
								
							
								 
							
						 
						
							
							
								
								* Added str_snippet() from MnO ipython script.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								c675077620 
								
							
								 
							
						 
						
							
							
								
								* Introducing self.lineno counter for line numbers (including the blanks  
							
							... 
							
							
 
							
							and comment lines). 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								3f3c49df94 
								
							
								 
							
						 
						
							
							
								
								* Added file mode for file creation (default: "w").  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								cde48ef8de 
								
							
								 
							
						 
						
							
							
								
								* wpylib.datetime: Date/time related module.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								3b522de2d6 
								
							
								 
							
						 
						
							
							
								
								* Added text_input.close() method.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								7d37c0b6ba 
								
							
								 
							
						 
						
							
							
								
								* Internal upgrade to factor out reusable parts (for future upgrades).  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								cf46af2bc2 
								
							
								 
							
						 
						
							
							
								
								* Simple function rename: make_unbound_method -> make_unbound_instance_method.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								77a15740cb 
								
							
								 
							
						 
						
							
							
								
								* New module wpylib.debugging: Debugging tools.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								16c24736e4 
								
							
								 
							
						 
						
							
							
								
								* ipython-interactive-script.PY: skeleton for my ipython interactive script.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								1e3d236b1c 
								
							
								 
							
						 
						
							
							
								
								* Completing initial version of interactive tool support: added interactive  
							
							... 
							
							
 
							
							mode detection (plain python, `python -i', and ipython supported),
  and my canned initialization for interactive python environment
  (like MYSELF, ARGV). 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								47f6bced79 
								
							
								 
							
						 
						
							
							
								
								* wpylib.math.linalg: Added initial module for linear-algebra convenience  
							
							... 
							
							
 
							
							functions, objects, and submodules. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								94c1651586 
								
							
								 
							
						 
						
							
							
								
								* wpylib.py.im_weakref: weakref for instance method.  
							
							... 
							
							
 
							
							Copied from Linux Screen Reader project. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								424a9238bb 
								
							
								 
							
						 
						
							
							
								
								* hacks.py: Added make_unbound_method to allow general function to participate  
							
							... 
							
							
 
							
							as hacked class methods. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								ceb8f35ec3 
								
							
								 
							
						 
						
							
							
								
								* Creating wpylib.py module to contain all python-level hacks.  
							
							... 
							
							
 
							
							Submodules are available for specialized and more complicated hacks. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								ad73b5af7f 
								
							
								 
							
						 
						
							
							
								
								* Added set_next_proc() method to set which procedure should be called when  
							
							... 
							
							
 
							
							"next()" method dispatcher is called.
  This approach should get rid of the problem with circular reference which
  causes the text_input instance not be erasable because of strong reference
  to `self' in `self.next.im_self'. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								1bbaae135f 
								
							
								 
							
						 
						
							
							
								
								* Added python-level advanced hack module which should hide all my dirty  
							
							... 
							
							
 
							
							tricks here. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								90c4f1b50b 
								
							
								 
							
						 
						
							
							
								
								* Added vector_str and matrix_str generic function to print a matrix/vector  
							
							... 
							
							
 
							
							in space-seprated string format.
  The output is mainly for human consumption, not for machine re-reading
  (although it is possible to do so, in general). 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								9e1c6f5868 
								
							
								 
							
						 
						
							
							
								
								* Commenting out the verbose printout. I think the module is robust now.  
							
							
 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								90f1603499 
								
							
								 
							
						 
						
							
							
								
								* Added text_output as a converse facility to print out text stream to  
							
							... 
							
							
 
							
							a file.
  Useful for a shortened output statements in the code, and also for
  reroutable output (to stdout? to file? to both?) and flexible output
  kind. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								0531e4e511 
								
							
								 
							
						 
						
							
							
								
								* Add documentation for file_table. Add note for future hash: SHA1,256,...  
							
							
 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								f42f2d82fa 
								
							
								 
							
						 
						
							
							
								
								* __imul__ and __idiv__ should return the lvalue object itself.  
							
							
 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								f1dee72d09 
								
							
								 
							
						 
						
							
							
								
								* Reset fitting debug level to 0.  
							
							
 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								f64a3cfd8e 
								
							
								 
							
						 
						
							
							
								
								* Using external login node on jaguar.  
							
							
 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								6181d5588d 
								
							
								 
							
						 
						
							
							
								
								* The sign of the scalar prefactor should not enter the uncertainty  
							
							... 
							
							
 
							
							(err) field! 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								2a30c20a79 
								
							
								 
							
						 
						
							
							
								
								* Added dict_islice to support slicing while ignoring non-existing keys  
							
							... 
							
							
 
							
							in the source dict. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								26db0806ae 
								
							
								 
							
						 
						
							
							
								
								* Make Struct available publicly in wpylib.params namespace (with the  
							
							... 
							
							
 
							
							'struct' name). 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								3ac8e37b35 
								
							
								 
							
						 
						
							
							
								
								* Using the __dict__ attribute to store user-defined values.  
							
							... 
							
							
 
							
							Dict-like behavior is exemplified by this class although it is *not*
  derived from a dict. 
							
						 
						
							15 years ago  
				
					
						
							
							
								 
						
							
							
								6d043f6721 
								
							
								 
							
						 
						
							
							
								
								* Simple clarification on example.  
							
							
 
							
						 
						
							15 years ago