Commit Graph

  • f04531a601 * Parameters: Added _append_() and _prepend_() methods. Wirawan Purwanto 2013-03-04 13:37:48 -0500
  • 099f3e7e06 * Module wpylib.db.indexing_float: utility for floating-point (FP)-based indexing, allowing tolerances to account for imprecise nature of FP numbers. Wirawan Purwanto 2013-03-03 09:15:43 -0500
  • 4fb16c56b2 * Documentation update. Wirawan Purwanto 2013-02-28 14:01:18 -0500
  • 9de8407dd9 * Added Test_3(). Wirawan Purwanto 2012-10-15 17:25:06 -0400
  • a0eb82ed2b * Mute debug printing. Wirawan Purwanto 2012-10-15 16:59:35 -0400
  • 5b213b0ee7 * Little syntax optimization. Wirawan Purwanto 2012-10-15 16:45:37 -0400
  • 414643ecde * Added testcase wpylib.math.fitting.linear.Test_2() against numpy.polyfit(). Wirawan Purwanto 2012-10-15 16:35:12 -0400
  • cb8124f699 * Provide uncertainty of both a and b fit parameters. Wirawan Purwanto 2012-10-15 16:12:37 -0400
  • 87763d6e57 * wpylib.math.fitting.linear: for linear fit methods. First method: linregr2d_SZ() from Shiwei's email in 2006. Wirawan Purwanto 2012-10-15 16:02:41 -0400
  • 908a4e0682 * Rebase fit_result on result_base. Wirawan Purwanto 2012-10-15 16:01:46 -0400
  • 348c204699 * Change wpylib.math.fitting module from a file into a subdirectory. Wirawan Purwanto 2012-10-15 15:16:02 -0400
  • 332d9ae240 * wpylib.math: added choose() function. Wirawan Purwanto 2012-08-24 16:32:33 -0400
  • b58ea30ba8 * Added a facility to catch exception while capturing stdout, and deliver the output printed so far (to stderr), plus re-raising the exception. Wirawan Purwanto 2012-08-24 16:31:48 -0400
  • f677dc1a81 * Added wpylib.py.stdout_capture as a hack tool to capture sys.stdout output of a given function call (and its child subroutines). Wirawan Purwanto 2012-08-10 10:13:18 -0400
  • 17d242213d * Added some useful functions from my pw2g_bench_MnO.py scriptlet collection: Wirawan Purwanto 2012-07-25 09:40:37 -0400
  • 96cec22fca * wpylib.file.file_utils: added file_exists_nonempty() function. Wirawan Purwanto 2012-07-24 17:11:36 -0400
  • 7ebb4004dc * str_igrep(): use enumerate function. Wirawan Purwanto 2012-06-13 19:36:35 -0400
  • d70bcf2149 * In text_output methods, do the required action iff self.out is not None. Wirawan Purwanto 2012-06-13 19:35:06 -0400
  • 81316af285 * Added os.path-like methods: isdir, isfile, islink. The last one is not reliable, but is added for uniformity for the time being. Wirawan Purwanto 2012-06-03 20:35:40 -0400
  • dcb7fa304c * Added sftp_client.put() method. * Added sftp_status_callback class. Wirawan Purwanto 2012-05-26 08:37:01 -0400
  • 6433e5da3c * Added prefix and suffix options for matrix_str and vector_str. Wirawan Purwanto 2012-05-23 00:25:42 -0400
  • 140b3b699c * Added wpylib.interactive_tools.printstr class to facilitate logging of print-ed output in interactive python sessions. Wirawan Purwanto 2012-05-17 12:29:30 -0400
  • 5c72506135 * New module: wpylib.file.tee * Added class tee_output for splitting text output to multiple destinations. Wirawan Purwanto 2012-05-14 15:48:43 -0400
  • 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. Wirawan Purwanto 2012-04-17 11:03:29 -0400
  • 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. Wirawan Purwanto 2012-04-17 11:00:30 -0400
  • 606214eb66 * Changing all `isinstance(STUFF, str)' to `isinstance(STUFF, basestring)' for future-proofing this code. Wirawan Purwanto 2012-04-13 17:10:32 -0400
  • 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. Wirawan Purwanto 2012-03-19 16:53:23 -0400
  • 41079fd92c * sugar: Added is_iterable(). Wirawan Purwanto 2012-03-19 11:57:19 -0400
  • 14303979f1 * Recorded down some notes/caveat for init_interactive(). Wirawan Purwanto 2012-02-16 13:53:58 -0500
  • 4194344891 * init_interactive() returns True if interactive session is detected; False otherwise. Wirawan Purwanto 2012-02-16 13:45:46 -0500
  • 1674bfd256 * Added workaround so at least interactive python detection works (although not perfectly) in python <= 2.5. Wirawan Purwanto 2012-02-16 13:32:55 -0500
  • f8a101fbe9 * Added comment_char option for text_input object creation. * Memory leak bugfix: Use instance method weakref. Wirawan Purwanto 2012-02-15 23:02:11 -0500
  • 5666280a45 * Alias "|" operator to "+" operator. Wirawan Purwanto 2012-02-09 15:02:38 -0500
  • 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. Wirawan Purwanto 2012-01-30 16:04:17 -0500
  • 050e2414ef * Added faster LDdec1 for 1-based indexing. Tested through N=1000. Wirawan Purwanto 2012-01-26 10:46:55 -0500
  • d04ea8cbea * Completing jskip formula for LD that is analogous to the jskip formula for UD matrix format. Wirawan Purwanto 2012-01-25 17:07:50 -0500
  • 93a89d2606 * Created array indexer for "upper diagonal" indexing mode. Apparently I was able to create the non-iterative version of UDdec (1-based indices). Wirawan Purwanto 2012-01-24 17:32:39 -0500
  • 961a802326 * Keep a copy of my symmetric array indexer worksheet in GIT. Wirawan Purwanto 2012-01-24 17:28:10 -0500
  • 7017fdc6af * Committing all dirty work to CVS. We are migrating to GIT. Beware: changes in this commit may or may not work properly. wirawan 2011-10-06 19:15:05 +0000
  • 8ebf1e422e * Add important warning. Maybe in the future we need to use operator "|" and append the search paths to _list_? wirawan 2011-09-19 20:06:45 +0000
  • 81e2ada60c * Allow comment character to be changed from "#" using the instance.comment_char attribute. wirawan 2011-09-16 21:21:23 +0000
  • 3f38cbfb34 * Allow printing of numpy.matrix objects. wirawan 2011-09-13 21:50:16 +0000
  • 6fb10829e0 * Added Parameters._get_() method. wirawan 2011-09-12 21:58:43 +0000
  • aad559d86b * Class Parameters: important change of behavior for more safety to avoid potential confusion. wirawan 2011-09-09 18:58:48 +0000
  • 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. wirawan 2011-09-07 15:05:54 +0000
  • 1181a7e516 * Add descriptive error message. wirawan 2011-09-07 15:04:15 +0000
  • ceeafa811a * Added str_snippet() from MnO ipython script. wirawan 2011-09-07 15:03:54 +0000
  • c675077620 * Introducing self.lineno counter for line numbers (including the blanks and comment lines). wirawan 2011-09-05 19:09:21 +0000
  • 3f3c49df94 * Added file mode for file creation (default: "w"). wirawan 2011-09-02 15:07:47 +0000
  • cde48ef8de * wpylib.datetime: Date/time related module. wirawan 2011-09-01 15:34:03 +0000
  • 3b522de2d6 * Added text_input.close() method. wirawan 2011-08-31 20:28:30 +0000
  • 7d37c0b6ba * Internal upgrade to factor out reusable parts (for future upgrades). wirawan 2011-08-31 20:27:31 +0000
  • cf46af2bc2 * Simple function rename: make_unbound_method -> make_unbound_instance_method. wirawan 2011-08-31 18:26:18 +0000
  • 77a15740cb * New module wpylib.debugging: Debugging tools. wirawan 2011-08-31 18:25:07 +0000
  • 16c24736e4 * ipython-interactive-script.PY: skeleton for my ipython interactive script. wirawan 2011-08-19 17:23:10 +0000
  • 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). wirawan 2011-07-18 15:48:52 +0000
  • 47f6bced79 * wpylib.math.linalg: Added initial module for linear-algebra convenience functions, objects, and submodules. wirawan 2011-07-14 19:00:59 +0000
  • 94c1651586 * wpylib.py.im_weakref: weakref for instance method. Copied from Linux Screen Reader project. wirawan 2011-06-08 15:50:07 +0000
  • 424a9238bb * hacks.py: Added make_unbound_method to allow general function to participate as hacked class methods. wirawan 2011-06-08 15:49:04 +0000
  • ceb8f35ec3 * Creating wpylib.py module to contain all python-level hacks. Submodules are available for specialized and more complicated hacks. wirawan 2011-06-08 15:29:14 +0000
  • ad73b5af7f * Added set_next_proc() method to set which procedure should be called when "next()" method dispatcher is called. wirawan 2011-06-03 21:34:32 +0000
  • 1bbaae135f * Added python-level advanced hack module which should hide all my dirty tricks here. wirawan 2011-06-03 21:31:59 +0000
  • 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). wirawan 2011-06-03 18:24:00 +0000
  • 9e1c6f5868 * Commenting out the verbose printout. I think the module is robust now. wirawan 2011-05-12 14:51:02 +0000
  • 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. wirawan 2011-05-11 20:28:51 +0000
  • 0531e4e511 * Add documentation for file_table. Add note for future hash: SHA1,256,... wirawan 2011-04-26 15:28:37 +0000
  • f42f2d82fa * __imul__ and __idiv__ should return the lvalue object itself. wirawan 2011-04-05 19:20:55 +0000
  • f1dee72d09 * Reset fitting debug level to 0. wirawan 2011-04-05 19:20:01 +0000
  • f64a3cfd8e * Using external login node on jaguar. wirawan 2011-03-10 20:18:27 +0000
  • 6181d5588d * The sign of the scalar prefactor should not enter the uncertainty (err) field! wirawan 2011-03-10 20:17:55 +0000
  • 2a30c20a79 * Added dict_islice to support slicing while ignoring non-existing keys in the source dict. wirawan 2011-03-10 20:16:58 +0000
  • 26db0806ae * Make Struct available publicly in wpylib.params namespace (with the 'struct' name). wirawan 2011-03-10 19:22:37 +0000
  • 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. wirawan 2011-03-10 19:21:33 +0000
  • 6d043f6721 * Simple clarification on example. wirawan 2011-03-10 19:20:35 +0000
  • d8984cf032 * Introducing "Struct", the base class for all structured datatypes. This is the original implementation as found in Ca+4H2_Hstorage_iter.py . wirawan 2011-03-10 17:17:48 +0000
  • dbd36e0f1f * Added division of errorbar by a scalar. wirawan 2010-12-01 17:11:46 +0000
  • 7dbef49f6c * Minor documentation edit. wirawan 2010-11-11 18:00:01 +0000
  • 8363eb03bc * Adding more extensive documentation. * Making minor changes to the expected method name (parse_text_file_ => parse_file_). wirawan 2010-11-11 17:59:36 +0000
  • 0bd6f56422 * Moving pyqmc.results.result_base module to wpylib.db.result_base for more general uses. wirawan 2010-11-11 17:48:01 +0000
  • bceef1e601 * Adding more methods for fitting: fmin (simplex minimization). I still have hard time making fitting routine work for me. But at least this one works for simple SHO fitting. wirawan 2010-11-05 02:28:20 +0000
  • 592d6bd7c9 * Correcting recursive updates. wirawan 2010-10-29 15:58:51 +0000
  • c0f67e9992 * Ignore compiled modules. wirawan 2010-10-25 14:43:17 +0000
  • 3fbc20ddb0 * Correction on notes. wirawan 2010-10-25 14:42:50 +0000
  • 2303ad8d0b * pipe_in (subprocess version): added "flush" method. wirawan 2010-10-25 14:41:39 +0000
  • 428b481b87 * Added initial support for errorbar object, which includes compression-to-string (ad hoc implementation is written in C++ with the help of my cp.inc library, unfortunately). wirawan 2010-10-19 20:19:25 +0000
  • 9eb177bc27 * Adding wpylib.math.stats submodule which contains commonly used statistical analysis tools. wirawan 2010-10-07 15:57:29 +0000
  • 02776c1e6a * Moving pyqmc.stats.avg to wpylib.math.stats.avg . wirawan 2010-10-07 15:56:55 +0000
  • 46e5caa7a2 * Convenience regular expression module. wirawan 2010-10-06 16:37:42 +0000
  • 96d1f9afd7 * Upgrade to allow reading complex-valued data directly. Please see the documentation of text_input.read_items for more detail. wirawan 2010-09-30 17:23:34 +0000
  • 71474e2973 * Standard python ignore. wirawan 2010-09-30 16:17:00 +0000
  • 6641410d89 * Moving the fancy "Parameters" parameter lookup class to its own module. From now on, use it as wpylib.params.flat class. wirawan 2010-09-30 16:16:38 +0000
  • 4c9b5ce9f7 * Update documentations. wirawan 2010-09-27 19:54:29 +0000
  • cae9cabdea * Simple text input reader. Imported from pyqmc.utils.text_input . wirawan 2010-09-27 19:54:05 +0000
  • 5f367c8fc8 * My own update scripts. wirawan 2010-09-27 19:53:22 +0000
  • 090d9f7b00 * Moving pyqmc.utils.file_utils to wpylib project. wirawan 2010-09-27 19:47:19 +0000
  • 631a152b8e * Moving pyqmc.utils.timer to wpylib. wirawan 2010-09-27 19:41:15 +0000
  • 5392a71943 * Correcting minor mistake. wirawan 2010-09-27 19:40:40 +0000
  • f1b8746147 * Updating Parameters class: now based on dict. * Can add two Parameters together, which means joining the two or more dicts, much like what function dict_join does. wirawan 2010-09-10 21:24:56 +0000
  • 379e83fdec * Added epsilon() function to find out the granuality of a given floating point type. wirawan 2010-09-10 21:23:59 +0000
  • fcba27ae24 * Added list_join, much like dict_join, except for list. * Added ranges "magic" object to define piecewise ranges. wirawan 2010-08-12 19:35:55 +0000