fe9fa59e76 
								
							
								 
							
						 
						
							
							
								
								* params_flat.py: Documentation and note updates.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								f7c9ad7d34 
								
							
								 
							
						 
						
							
							
								
								* Added functions time_diff() and shift_time() for UNIX time manipulation.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								8f513ff5b4 
								
							
								 
							
						 
						
							
							
								
								* Added tests for Parameters._all_keys().  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								6709679af9 
								
							
								 
							
						 
						
							
							
								
								* Parameters: Added _all_keys_() and _flatten_() methods.  
							
							... 
							
							
 
							
							Warning: These are expensive, and not for general use. 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								5a84a98b84 
								
							
								 
							
						 
						
							
							
								
								* Added tests for _append_() and _prepend_() methods.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								f04531a601 
								
							
								 
							
						 
						
							
							
								
								* Parameters: Added _append_() and _prepend_() methods.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								099f3e7e06 
								
							
								 
							
						 
						
							
							
								
								* Module wpylib.db.indexing_float: utility for floating-point (FP)-based  
							
							... 
							
							
 
							
							indexing, allowing tolerances to account for imprecise nature of FP
  numbers.
  Initial implementation, rather complicated.
  A simple rounding-based implementation can be put in later.
  Includes initial test. 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								4fb16c56b2 
								
							
								 
							
						 
						
							
							
								
								* Documentation update.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								9de8407dd9 
								
							
								 
							
						 
						
							
							
								
								* Added Test_3().  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								a0eb82ed2b 
								
							
								 
							
						 
						
							
							
								
								* Mute debug printing.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								5b213b0ee7 
								
							
								 
							
						 
						
							
							
								
								* Little syntax optimization.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								414643ecde 
								
							
								 
							
						 
						
							
							
								
								* Added testcase wpylib.math.fitting.linear.Test_2() against numpy.polyfit().  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								cb8124f699 
								
							
								 
							
						 
						
							
							
								
								* Provide uncertainty of both a and b fit parameters.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								87763d6e57 
								
							
								 
							
						 
						
							
							
								
								* wpylib.math.fitting.linear: for linear fit methods.  
							
							... 
							
							
 
							
							First method: linregr2d_SZ() from Shiwei's email in 2006. 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								908a4e0682 
								
							
								 
							
						 
						
							
							
								
								* Rebase fit_result on result_base.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								348c204699 
								
							
								 
							
						 
						
							
							
								
								* Change wpylib.math.fitting module from a file into a subdirectory.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								332d9ae240 
								
							
								 
							
						 
						
							
							
								
								* wpylib.math: added choose() function.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								b58ea30ba8 
								
							
								 
							
						 
						
							
							
								
								* Added a facility to catch exception while capturing stdout, and deliver  
							
							... 
							
							
 
							
							the output printed so far (to stderr), plus re-raising the exception. 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								f677dc1a81 
								
							
								 
							
						 
						
							
							
								
								* Added wpylib.py.stdout_capture as a hack tool to capture sys.stdout  
							
							... 
							
							
 
							
							output of a given function call (and its child subroutines). 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								17d242213d 
								
							
								 
							
						 
						
							
							
								
								* Added some useful functions from my pw2g_bench_MnO.py scriptlet collection:  
							
							... 
							
							
 
							
							- wpylib.math.roundup()
  - wpylib.shell_tools.dirname2()
* file_exists_nonempty() is moved to wpylib.shell_tools. 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								96cec22fca 
								
							
								 
							
						 
						
							
							
								
								* wpylib.file.file_utils: added file_exists_nonempty() function.  
							
							
 
							
						 
						
							13 years ago  
				
					
						
							
							
								 
						
							
							
								7ebb4004dc 
								
							
								 
							
						 
						
							
							
								
								* str_igrep(): use enumerate function.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								d70bcf2149 
								
							
								 
							
						 
						
							
							
								
								* In text_output methods, do the required action iff self.out is not None.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								81316af285 
								
							
								 
							
						 
						
							
							
								
								* Added os.path-like methods: isdir, isfile, islink.  
							
							... 
							
							
 
							
							The last one is not reliable, but is added for uniformity for the time
  being. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								dcb7fa304c 
								
							
								 
							
						 
						
							
							
								
								* Added sftp_client.put() method.  
							
							... 
							
							
 
							
							* Added sftp_status_callback class. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								6433e5da3c 
								
							
								 
							
						 
						
							
							
								
								* Added prefix and suffix options for matrix_str and vector_str.  
							
							
 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								140b3b699c 
								
							
								 
							
						 
						
							
							
								
								* Added wpylib.interactive_tools.printstr class to facilitate logging of  
							
							... 
							
							
 
							
							print-ed output in interactive python sessions. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								5c72506135 
								
							
								 
							
						 
						
							
							
								
								* New module: wpylib.file.tee  
							
							... 
							
							
 
							
							* Added class tee_output for splitting text output to multiple destinations. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								ad841e0b90 
								
							
								 
							
						 
						
							
							
								
								* text_input.read_items(): added option `end_line_match' and `last_line_match'  
							
							... 
							
							
 
							
							(mutually exclusive options) to allow the dataset reading to end upon
  encountering certain text pattern (or a more complicated match, if we
  specify a function for the option value).
  These options can be used to work with the `maxcount' option; the shortest
  of the two (maxcount records read first, or end/last_line_match finds a
  match) will end the reading of the dataset. 
							
						 
						
							14 years ago  
				
					
						
							
							
								 
						
							
							
								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