ffd21689be
* Parameters class: a way to look for parameters in definite search order across functions, so that these parameters do not have to be passed in kitchen-sink manner. WARNING: STILL UNDER TESTING.
wirawan2010-05-28 18:47:56 +00:00
3701e5655a
* added str_grep and str_igrep.
wirawan2010-05-28 18:46:53 +00:00
a6582aa8f2
* pipe_in() for "piping in" input to an external command. * system() like os.system() except with error checking. * getenv() to get look for a value from a list of environment variables-- they are searched sequentially in definite order.
wirawan2010-05-28 18:45:51 +00:00
75d4c2240c
* Function ztol: for zeroing out array elements below certain tolerance.
wirawan2010-05-28 18:43:59 +00:00
adbe499db8
* Fitting seemed to work, but still not perfectly. Do not use in production yet.
wirawan2010-05-28 18:43:39 +00:00
ed52cd4af0
* Added slice_str for easy printout of a slice object in python typical slice syntax (e.g. 0:10: or 0:10:3 or :10:3, etc).
wirawan2010-02-24 14:28:13 +00:00
733c518735
* Added: density refitter onto a different FFT grid and/or supercell size (expansion to a larger supercell).
wirawan2010-02-24 14:27:23 +00:00
8c37b36673
* Template for dirty scripts/experiments.
wirawan2010-02-24 14:26:29 +00:00
ba3fcb6b6f
* Added: dict_join to join several dicts, with keys from latter dicts taking higher precedence.
wirawan2010-02-19 18:42:15 +00:00
9e7eeca3a2
* import_commands now will *NOT* override built-in python names (like dir, id). Otherwise, this will result in disaster.
wirawan2010-02-19 18:40:19 +00:00
15baf746f9
* Ignore all compiled python modules.
wirawan2010-02-11 02:29:51 +00:00
21e85704aa
* Initial version of Fortran binary file reader. Later a writing facility can be added as well. * Note that this module is intended only for reading/writing Fortran-generated files. It is not recommended for any other purpose because of its terrible feature: no metadata, no description whatsoever.
wirawan2010-02-08 21:49:54 +00:00
f246d382bf
* Fix to make this work with independent pysqlite2 package. * Allow rows to be returned as sqlite3.Row objects instead of simple tuple.
wirawan2010-02-08 20:00:14 +00:00
37b556ded8
* Added dict_slice, a slicing tool returning a subset of a given dict (or other dict-like object).
wirawan2010-02-08 19:58:44 +00:00
599401a543
* Include *all* coreutils as the repertoire of the shell_tool commands. * Added sorted_glob to return sorted list of globbed files. Needed for this script to run on older python 2.3-based systems.
wirawan2010-02-08 19:57:35 +00:00
dfc7a780f9
* Renaming file_db to file_table class. * Allow record update in somewhat pythonic way (instead of using SQL).
wirawan2010-02-08 01:46:12 +00:00
669e48b8d3
* Added "db" module group to deal with database management tasks. * First module: file_db to store filename, fingerprint (md5sum) and basic stats (mtime, size). Additional fields can be specified as well. * Will use sqlite as the backend for now. * API is rather generic so the underlying database engine can be replaced.
wirawan2010-02-06 23:21:09 +00:00
9de91dcc59
* Don't save python compiled modules.
wirawan2010-01-22 18:50:39 +00:00
66b8f5309d
* Added: str_unindent to unindent python """-style string. * Added: str_save_to_file to quickly save/append a string (or strings) to a text file. * Added: str_expand to do iterative string expansion a la make or m4 (but without programming capabilities).
wirawan2010-01-22 18:50:09 +00:00
605bfb16a2
* Simplified spline interpolation tools for 2-D curves (single curve or piecewise curve).
wirawan2010-01-22 18:48:19 +00:00
c62735c225
* Placeholder for interactive python support.
wirawan2010-01-22 18:46:27 +00:00
9e62d32873
* Draft of simple nonlinear fitting module for my use. Still not finished yet.
wirawan2010-01-22 18:44:59 +00:00
3a22bb1e99
* Added backward compatibility/support for python 2.3 or older. * Added more general-purpose (some coreutils, grep, less, etc.) Linux commands into the namespace for ease of use in regular python.
wirawan2010-01-20 21:27:41 +00:00
d27c00e979
* Added pipe_out to pass the output of a spawn command to python. This is equivalent to backtick operator with optional line splitting.
wirawan2010-01-20 17:25:54 +00:00
86c7558758
* Subdomain "wpylib.math" contains my frequently used mathematical tools.
wirawan2010-01-20 03:11:01 +00:00
b8c378cc14
* Facilitate invocation of some GNU coreutil programs in my python scripts.
wirawan2010-01-18 20:55:44 +00:00
3609a5b95b
* Module wpylib.shell_tools will contain common utilities similar to those that I have been using in my shell. * Function added: mcd.
wirawan2010-01-08 18:43:06 +00:00
887ca7e16e
* text_tools: module to contain simple text utilities.
wirawan2009-12-04 19:57:22 +00:00
6e1b0c505c
* Introducing "wpylib" which is the collection of my small python utilities. * graph_digitizer: Utility to help me digitize numbers from a graph image files (JPG/PNG plots).
wirawan2009-12-04 19:30:26 +00:00