e46fcec698* Imported more recent function fitting facility from Cr2 project.
Wirawan Purwanto
2015-05-21 11:32:01 -04:00
e37110b08b* Added more support for legacy 'rannyi' RNG from our Fortran codes, including one from normal gaussian PDF.
Wirawan Purwanto
2015-05-21 11:30:19 -04:00
82a55b940a* wpylib.math.fitting: Imported fit_func_base from Cr2 project. * Added documentation on fitting methods.
Wirawan Purwanto
2015-05-20 11:45:21 -04:00
4111dc2da7* Moved Poly_base & friends to wpylib.math.fitting.funcs_poly.
Wirawan Purwanto
2015-05-20 10:33:31 -04:00
10047b26f9* Module wpylib.math.linalg.gram_schmidt to orthonormalize a set of columns vectors.
Wirawan Purwanto
2015-04-01 15:46:48 -04:00
a3add89f5a* Added simple tools to read/write values to/from a HDF5 file.
Wirawan Purwanto
2015-04-01 12:56:19 -04:00
b7f1cbaa5c* In tmpdir cleanup: Replaced stray debug printout with a warning msg if tmpdir is not to be cleaned up.
Wirawan Purwanto
2015-03-18 14:12:10 -04:00
7568f5874e* Added a tool to create bound instance method with weak ref to the instance.
Wirawan Purwanto
2015-03-16 18:07:18 -04:00
f3f47f658e* Added tester for wpylib.iofmt submodules and objects: first test is for text_output "with" invocation.
Wirawan Purwanto
2014-08-02 21:34:12 -04:00
025d410ec4* Moved test modules to a separate TESTS subdirectory to avoid confusion.
Wirawan Purwanto
2014-08-02 21:33:35 -04:00
723f1a4fc1* Added __enter__/__exit__ method for use with python 2.5's "with" statement.
Wirawan Purwanto
2014-08-02 21:32:34 -04:00
b0c524e5a8* Added more test harness (test 3) for dict_update_nested().
Wirawan Purwanto
2014-06-05 12:47:44 -04:00
6c8c2d8381* Added: dict_update_nested() for nested dict member copy-update into the destination. * Added most basic test harnesses for that routine.
Wirawan Purwanto
2014-06-05 11:30:47 -04:00
17b9ed5585* For auto param _create_() function: added _skipframes_ option, if needed. * Added support for __flatten_dict__() function.
Wirawan Purwanto
2014-05-30 18:22:22 -04:00
597398a34b* Added missing function (rms).
Wirawan Purwanto
2014-05-29 13:55:05 -04:00
bb3db2667a* Module array_stat: Added study_sparsity() and print_histogram(), adapted from V2b_inspect research module.
Wirawan Purwanto
2014-04-17 16:42:36 -04:00
aaa06dc531* Added rdiff() function to calculate element-wise relative difference of two arrays.
Wirawan Purwanto
2014-04-17 13:33:31 -04:00
a0d8ed87a3* New module: wpylib.array_tools for convenient array manipulations.
Wirawan Purwanto
2014-04-07 12:27:08 -04:00
8da8937009* Added function str_indent for completeness.
Wirawan Purwanto
2014-04-07 12:26:09 -04:00
a347ae6d47* New module: wpylib.math.stats.array_stats, for studying statistics of an array (e.g., sparsity, difference, etc).
Wirawan Purwanto
2014-04-07 12:25:33 -04:00
b043fb3cdf* fit_func: Added support for lmfit-based minimization.
Wirawan Purwanto
2014-02-07 18:25:22 -05:00
363999badf* Added str_lstrip, str_rstrip functions for a Bourne-like substring stripping.
Wirawan Purwanto
2014-01-31 10:07:05 -05:00
4fbf85d503* Added function_name to obtain the name given to a function.
Wirawan Purwanto
2014-01-31 10:06:33 -05:00
839948a8da* Moved the following functions from wpylib.shell_tools to wpylib.file.file_utils since they are not directly related to shell:
Wirawan Purwanto
2014-01-16 12:31:57 -05:00
0c352b44f7* Added function scan_directories() -- initial version for scanning recursively all through directories (no symlink following), to collect all subdirectories that satisfy the test criteria defined in the testdir() function argument.
Wirawan Purwanto
2014-01-16 11:58:51 -05:00
d93fb5b7c2* Added support for .xz file extension. * Using backported lzma module (on python <= 3.2) to eliminate subprocess, if possible.
Wirawan Purwanto
2014-01-15 16:39:00 -05:00
869aa91109* fit_func(): Allow non-(numpy.ndarray) args for x, y, dy. * Documentation update.
Wirawan Purwanto
2013-10-17 13:49:50 -04:00
fb6631f756* Use is_iterable to detect iterable specs argument.
Wirawan Purwanto
2013-10-17 13:49:17 -04:00
9a5d2dfa9f* text_tools: Added str_fmt_heading() function for formatting table heading a la printf.
Wirawan Purwanto
2013-10-17 13:48:07 -04:00
579be3e18a* errorbar: Added "lazy" string evaluation to speed up errorbar algebra.
Wirawan Purwanto
2013-10-02 15:32:46 -04:00
ed1242dc66* Added "lazy string printout" which will speed up errorbar algebra--i.e. we only need to evaluate the string representation when the string printout isrequired.
Wirawan Purwanto
2013-10-02 14:30:55 -04:00
c8aad2e2f8* Added facility for smoothed approximating spline instead of "exact" interpolation.
Wirawan Purwanto
2013-09-17 18:00:08 -04:00
06fa307e84* spline_2d: Use public scipy API functions.
Wirawan Purwanto
2013-09-17 17:18:29 -04:00
564d1f4364* wpylib.math.fitting.fit_func: Added support for weight (or y uncertainty). * For `leastsq' fit method, also introduced 'xerr' output (in outfmt=0) as the error estimate of the fitted parameters.
Wirawan Purwanto
2013-08-19 15:43:49 -04:00
1421cf3bc5* wpylib.math.fitting.fit_func: Allow Guess argument to override machine-generated guess. * Add 'funcalls' data key to the leastsq complete output to conform to the fmin-style output.
Wirawan Purwanto
2013-08-19 10:50:54 -04:00
2907b2ca77* Set lcg48 default seed_index for user's reference
Wirawan Purwanto
2013-08-19 10:11:09 -04:00
42fdcc5253* Added new module wpylib.math.random and its submodule (rng_lcg48). The LCG48 generator is primarily for testing algorithms involving random numbers.
Wirawan Purwanto
2013-08-14 15:29:26 -04:00
e485cabbe8* wpylib.math.fitting.fit_func: Added optional Funct_hook argument to be called (for debugging purposes) every time "the" Funct function is called.
Wirawan Purwanto
2013-08-13 01:05:38 -04:00
f49d166a77* wpylib.iofmt.fortbin: Added fortran_types class to manage and analyze Fortran datatypes.
Wirawan Purwanto
2013-06-26 16:24:19 -05:00
2e21e2857a* Added function relpath() to compute relative path from one to another path.
Wirawan Purwanto
2013-06-25 17:01:26 -04:00
fc0d97db1e* Parameters._flatten_(): Added workaround to avoid evaluating the dict values while flattening the list. This is critical for avoiding evaluation of the 'active' members.
Wirawan Purwanto
2013-04-25 16:54:36 -04:00
2daca4af6e* tee_output: Allow None to be given in the `files' argument, which stands for a null file.
Wirawan Purwanto
2013-04-19 16:46:09 -04:00
80961ed2bd* Added test7 and test8 for param_flat module.
Wirawan Purwanto
2013-04-17 17:26:48 -04:00
b326937d80* Parameters: Now correctly implements _flatten_() method and flag.
Wirawan Purwanto
2013-04-16 14:06:26 -04:00
8d32c2c067* Parameters: if _flatten_ is enabled, must flatten in reverse order to give the firstly mentioned dict the priority.
Wirawan Purwanto
2013-04-16 11:55:18 -04:00
254aaca622* Added tester for active Parameters value.
Wirawan Purwanto
2013-04-11 14:38:04 -04:00
0f58bc0f03* params_flat.py: Added ActiveReadValue magic class to enable active', or executable, parameter, which will be executed upon reading' such a value.
Wirawan Purwanto
2013-04-11 14:36:52 -04:00