Commit Graph

219 Commits

Author SHA1 Message Date
Wirawan Purwanto
4111dc2da7 * Moved Poly_base & friends to wpylib.math.fitting.funcs_poly. 2015-05-20 10:35:48 -04:00
Wirawan Purwanto
773177d2b0 * Added tester for array functions. 2015-05-20 09:51:06 -04:00
Wirawan Purwanto
32b3580687 * Added array_tools.array_vstack. 2015-05-20 09:50:38 -04:00
Wirawan Purwanto
f9cdb33e32 * Added "LDC" layout (C row-major, lower diagonal storage).
* Added reference mapping generator (and sample output for 5x5)
  for each layout.
2015-05-14 16:07:16 -04:00
Wirawan Purwanto
17c701edee * matrix_str: Added support for complex array. 2015-04-17 17:45:05 -04:00
Wirawan Purwanto
bec94cb8c0 * Documentation update. 2015-04-03 16:09:37 -04:00
Wirawan Purwanto
b4883c4ca9 * Added shortcut to modified Gram Schmidt (modgs) -> wpylib.math.linalg.modgs. 2015-04-03 16:08:53 -04:00
Wirawan Purwanto
10047b26f9 * Module wpylib.math.linalg.gram_schmidt to orthonormalize a set of
columns vectors.
2015-04-01 15:46:48 -04:00
Wirawan Purwanto
a3add89f5a * Added simple tools to read/write values to/from a HDF5 file. 2015-04-01 12:56:19 -04:00
Wirawan Purwanto
b7f1cbaa5c * In tmpdir cleanup: Replaced stray debug printout with a warning msg if
tmpdir is not to be cleaned up.
2015-03-18 14:12:10 -04:00
Wirawan Purwanto
7568f5874e * Added a tool to create bound instance method with weak ref to the instance. 2015-03-16 18:07:18 -04:00
Wirawan Purwanto
1c5ec91b64 * Added method idatetime.join_values() . 2015-03-12 23:47:48 -04:00
Wirawan Purwanto
86e4e8fd51 * Bugfixes for tmpdir. 2015-02-10 17:39:03 -05:00
Wirawan Purwanto
c9fdeee86b Merge remote-tracking branch 'origin/master' 2014-12-09 23:56:45 -05:00
Wirawan Purwanto
8a5a11971f * Experimental support for BLAS for matrix multiplication.
Not enabled by default, yet.
2014-11-05 22:50:49 -05:00
Wirawan Purwanto
9a4f4d782b * Added first implementation (and test harness) for idatetime
datatype.
2014-10-16 15:56:16 -04:00
Wirawan Purwanto
10ee70427c * Upgraded utime_to_iso function to include more formatting. 2014-10-16 14:26:19 -04:00
Wirawan Purwanto
4f82c80af9 * Documentation & test update. 2014-10-15 10:12:49 -04:00
Wirawan Purwanto
d841380864 * Added class wpylib.math.stats.avg.weight_stats for weighted statistical
analysis.
2014-09-04 17:44:50 -04:00
Wirawan Purwanto
5c177065dd * Added block_timer class for use in python 2.5+ "with ..." construct. 2014-08-27 22:24:59 -04:00
Wirawan Purwanto
3e0d86fdfb * Added array_hstack function. 2014-08-27 22:23:20 -04:00
Wirawan Purwanto
7d5bf9e7f8 * Added simple text table reader. 2014-08-27 22:22:59 -04:00
Wirawan Purwanto
22d5b6f888 * Added class logged_runner for logging external programs called from
a python script.
2014-08-19 11:09:46 -04:00
Wirawan Purwanto
3ee3dd5c4b * Module wpylib.file.tmpdir: defines a script-wide temporary directory. 2014-08-19 11:07:39 -04:00
Wirawan Purwanto
d7a65386a3 * Fortran binary file: Added bulk_read_array1 method for quick reading of
array of (uniform-type) Fortran records.
2014-08-19 11:06:08 -04:00
Wirawan Purwanto
02a0222f34 * wpylib.file.file_utils: added is_readable/is_writable test functions. 2014-08-02 22:10:58 -04:00
Wirawan Purwanto
f3f47f658e * Added tester for wpylib.iofmt submodules and objects: first test is for
text_output "with" invocation.
2014-08-02 21:34:12 -04:00
Wirawan Purwanto
025d410ec4 * Moved test modules to a separate TESTS subdirectory to avoid confusion. 2014-08-02 21:33:35 -04:00
Wirawan Purwanto
723f1a4fc1 * Added __enter__/__exit__ method for use with python 2.5's "with" statement. 2014-08-02 21:32:34 -04:00
Wirawan Purwanto
fd47842b73 * Documentation update. 2014-08-02 21:17:54 -04:00
Wirawan Purwanto
b0c524e5a8 * Added more test harness (test 3) for dict_update_nested(). 2014-06-05 12:47:44 -04:00
Wirawan Purwanto
6c8c2d8381 * Added: dict_update_nested() for nested dict member copy-update into
the destination.
* Added most basic test harnesses for that routine.
2014-06-05 11:30:47 -04:00
Wirawan Purwanto
17b9ed5585 * For auto param _create_() function: added _skipframes_ option, if needed.
* Added support for __flatten_dict__() function.
2014-05-30 18:22:22 -04:00
Wirawan Purwanto
1eaeb3e68c * Added function: dict_defval and dict_defvals. 2014-05-29 13:55:16 -04:00
Wirawan Purwanto
597398a34b * Added missing function (rms). 2014-05-29 13:55:05 -04:00
Wirawan Purwanto
bb3db2667a * Module array_stat: Added study_sparsity() and print_histogram(),
adapted from V2b_inspect research module.
2014-04-17 16:42:36 -04:00
Wirawan Purwanto
aaa06dc531 * Added rdiff() function to calculate element-wise relative difference of
two arrays.
2014-04-17 13:33:59 -04:00
Wirawan Purwanto
a0d8ed87a3 * New module: wpylib.array_tools for convenient array manipulations. 2014-04-07 12:27:08 -04:00
Wirawan Purwanto
8da8937009 * Added function str_indent for completeness. 2014-04-07 12:26:09 -04:00
Wirawan Purwanto
a347ae6d47 * New module: wpylib.math.stats.array_stats, for studying statistics of
an array (e.g., sparsity, difference, etc).
2014-04-07 12:25:33 -04:00
Wirawan Purwanto
3b0a8af1aa * Added MathWarning for mathematics-related warning messages. 2014-03-28 14:29:10 -04:00
Wirawan Purwanto
04e78ade1d * Added extra debugging statements. 2014-02-24 16:06:40 -05:00
Wirawan Purwanto
1e56bb95eb * wpylib.file.file_utils: added path_prep and mkdir_p. 2014-02-24 16:06:09 -05:00
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).
2014-02-07 18:25:22 -05:00
Wirawan Purwanto
363999badf * Added str_lstrip, str_rstrip functions for a Bourne-like substring
stripping.
2014-01-31 10:07:05 -05:00
Wirawan Purwanto
4fbf85d503 * Added function_name to obtain the name given to a function. 2014-01-31 10:06:33 -05:00
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.
2014-01-16 12:31:57 -05:00
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.
2014-01-16 11:58:51 -05:00
Wirawan Purwanto
d93fb5b7c2 * Added support for .xz file extension.
* Using backported lzma module (on python <= 3.2) to eliminate subprocess,
  if possible.
2014-01-15 16:39:00 -05:00
Wirawan Purwanto
5ce6e86b43 * Added functions: is_executable_file() and path_split_all(). 2014-01-15 16:37:29 -05:00