Wirawan Purwanto
b043fb3cdf
* fit_func: Added support for lmfit-based minimization.
...
Tested minimally in the Cr2_analysis_cbs.py workbench (routine:
Test_MC_FPTZ_20140206).
11 years ago
Wirawan Purwanto
363999badf
* Added str_lstrip, str_rstrip functions for a Bourne-like substring
...
stripping.
11 years ago
Wirawan Purwanto
4fbf85d503
* Added function_name to obtain the name given to a function.
11 years ago
Wirawan Purwanto
839948a8da
* Moved the following functions from wpylib.shell_tools to
...
wpylib.file.file_utils since they are not directly related to shell:
- file_exists_nonempty
- is_executable_file
- dirname2
- relpath
- path_split_all
- list_dir_entries
These are new API functions, so hopefully their changes would not
affect many existing scripts.
* Added support for xz-compressed tar in untar() routine. Untested.
* Documentation updates.
11 years ago
Wirawan Purwanto
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.
11 years ago
Wirawan Purwanto
d93fb5b7c2
* Added support for .xz file extension.
...
* Using backported lzma module (on python <= 3.2) to eliminate subprocess,
if possible.
11 years ago
Wirawan Purwanto
5ce6e86b43
* Added functions: is_executable_file() and path_split_all().
11 years ago
Wirawan Purwanto
a33ad3c766
* Introduced a much faster way (and simpler) to compute jackknife averages.
11 years ago
Wirawan Purwanto
4e2b2c66c2
* Added wpylib.math.stats.jackknife1, initial implementation of delete-one
...
jackknife resampling method.
This module also contains a hack for weighted average
(warning: the theory is not established yet, at least I have not seen
it).
11 years ago
Wirawan Purwanto
f0ba6f4068
* wpylib.math: Added complex_polar().
11 years ago
Wirawan Purwanto
093b15085b
* utime_to_iso(): Let the local current time be the default input data.
11 years ago
Wirawan Purwanto
0675c6c599
* Added wpylib.datetime.utime_to_iso() function.
11 years ago
Wirawan Purwanto
42babbe767
* Add "global variable" statement.
11 years ago
Wirawan Purwanto
869aa91109
* fit_func(): Allow non-(numpy.ndarray) args for x, y, dy.
...
* Documentation update.
11 years ago
Wirawan Purwanto
fb6631f756
* Use is_iterable to detect iterable specs argument.
11 years ago
Wirawan Purwanto
9a5d2dfa9f
* text_tools: Added str_fmt_heading() function for formatting table heading
...
a la printf.
11 years ago
Wirawan Purwanto
579be3e18a
* errorbar: Added "lazy" string evaluation to speed up errorbar algebra.
11 years ago
Wirawan Purwanto
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.
11 years ago
Wirawan Purwanto
c8aad2e2f8
* Added facility for smoothed approximating spline instead of "exact"
...
interpolation.
11 years ago
Wirawan Purwanto
06fa307e84
* spline_2d: Use public scipy API functions.
11 years ago
Wirawan Purwanto
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.
12 years ago
Wirawan Purwanto
37b0939671
* Documentation clarification.
12 years ago
Wirawan Purwanto
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.
12 years ago
Wirawan Purwanto
2907b2ca77
* Set lcg48 default seed_index for user's reference
12 years ago
Wirawan Purwanto
42fdcc5253
* Added new module wpylib.math.random and its submodule (rng_lcg48).
...
The LCG48 generator is primarily for testing algorithms involving random
numbers.
12 years ago
Wirawan Purwanto
e485cabbe8
* wpylib.math.fitting.fit_func: Added optional Funct_hook argument to
...
be called (for debugging purposes) every time "the" Funct function
is called.
12 years ago
Wirawan Purwanto
cdad14e034
* Added BFGS minimization.
12 years ago
Wirawan Purwanto
f49d166a77
* wpylib.iofmt.fortbin: Added fortran_types class to manage and analyze
...
Fortran datatypes.
First edition contains tool to estimate the size of datatypes,
and size of file records (or sequence of records).
12 years ago
Wirawan Purwanto
2e21e2857a
* Added function relpath() to compute relative path from one to another
...
path.
12 years ago
Wirawan Purwanto
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.
12 years ago
Wirawan Purwanto
2daca4af6e
* tee_output: Allow None to be given in the `files' argument, which stands
...
for a null file.
12 years ago
Wirawan Purwanto
80961ed2bd
* Added test7 and test8 for param_flat module.
...
- test7 tests active parameters which can work OK if the search dicts are
flatten.
- test8 tests the _flatten_() method.
12 years ago
Wirawan Purwanto
b326937d80
* Parameters: Now correctly implements _flatten_() method and flag.
...
- The _flatten_() method should recursively flatten the parameter
search space into a single dict.
- The _flatten_ flag will flatten the input dicts and keyword-based
parameter (in the __init__() method only) in the expected order of
priority (where the first found keyword is the most overriding one)
into a single search dict.
12 years ago
Wirawan Purwanto
8d32c2c067
* Parameters: if _flatten_ is enabled, must flatten in reverse order to
...
give the firstly mentioned dict the priority.
12 years ago
Wirawan Purwanto
254aaca622
* Added tester for active Parameters value.
12 years ago
Wirawan Purwanto
0f58bc0f03
* params_flat.py: Added ActiveReadValue magic class to enable `active',
...
or executable, parameter, which will be executed upon `reading' such a
value.
12 years ago
Wirawan Purwanto
fe9fa59e76
* params_flat.py: Documentation and note updates.
12 years ago
Wirawan Purwanto
f7c9ad7d34
* Added functions time_diff() and shift_time() for UNIX time manipulation.
12 years ago
Wirawan Purwanto
8f513ff5b4
* Added tests for Parameters._all_keys().
12 years ago
Wirawan Purwanto
6709679af9
* Parameters: Added _all_keys_() and _flatten_() methods.
...
Warning: These are expensive, and not for general use.
12 years ago
Wirawan Purwanto
5a84a98b84
* Added tests for _append_() and _prepend_() methods.
12 years ago
Wirawan Purwanto
f04531a601
* Parameters: Added _append_() and _prepend_() methods.
12 years ago
Wirawan Purwanto
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.
12 years ago
Wirawan Purwanto
4fb16c56b2
* Documentation update.
12 years ago
Wirawan Purwanto
9de8407dd9
* Added Test_3().
12 years ago
Wirawan Purwanto
a0eb82ed2b
* Mute debug printing.
12 years ago
Wirawan Purwanto
5b213b0ee7
* Little syntax optimization.
12 years ago
Wirawan Purwanto
414643ecde
* Added testcase wpylib.math.fitting.linear.Test_2() against numpy.polyfit().
12 years ago
Wirawan Purwanto
cb8124f699
* Provide uncertainty of both a and b fit parameters.
12 years ago
Wirawan Purwanto
87763d6e57
* wpylib.math.fitting.linear: for linear fit methods.
...
First method: linregr2d_SZ() from Shiwei's email in 2006.
12 years ago