Commit Graph
157 Commits
Author SHA1 Message Date
wirawan 0bd6f56422 * Moving pyqmc.results.result_base module to wpylib.db.result_base for more
general uses.
2010-11-11 17:48:01 +00:00
wirawan 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.
2010-11-05 02:28:20 +00:00
wirawan 592d6bd7c9 * Correcting recursive updates. 2010-10-29 15:58:51 +00:00
wirawan c0f67e9992 * Ignore compiled modules. 2010-10-25 14:43:17 +00:00
wirawan 3fbc20ddb0 * Correction on notes. 2010-10-25 14:42:50 +00:00
wirawan 2303ad8d0b * pipe_in (subprocess version): added "flush" method. 2010-10-25 14:41:39 +00:00
wirawan 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).
2010-10-19 20:19:25 +00:00
wirawan 9eb177bc27 * Adding wpylib.math.stats submodule which contains commonly used statistical
analysis tools.
2010-10-07 15:57:29 +00:00
wirawan 02776c1e6a * Moving pyqmc.stats.avg to wpylib.math.stats.avg . 2010-10-07 15:56:55 +00:00
wirawan 46e5caa7a2 * Convenience regular expression module. 2010-10-06 16:37:42 +00:00
wirawan 96d1f9afd7 * Upgrade to allow reading complex-valued data directly.
Please see the documentation of text_input.read_items for more detail.
2010-09-30 17:23:34 +00:00
wirawan 71474e2973 * Standard python ignore. 2010-09-30 16:17:00 +00:00
wirawan 6641410d89 * Moving the fancy "Parameters" parameter lookup class to its own module.
From now on, use it as wpylib.params.flat class.
2010-09-30 16:16:38 +00:00
wirawan 4c9b5ce9f7 * Update documentations. 2010-09-27 19:54:29 +00:00
wirawan cae9cabdea * Simple text input reader. Imported from pyqmc.utils.text_input . 2010-09-27 19:54:05 +00:00
wirawan 5f367c8fc8 * My own update scripts. 2010-09-27 19:53:22 +00:00
wirawan 090d9f7b00 * Moving pyqmc.utils.file_utils to wpylib project. 2010-09-27 19:47:19 +00:00
wirawan 631a152b8e * Moving pyqmc.utils.timer to wpylib. 2010-09-27 19:41:15 +00:00
wirawan 5392a71943 * Correcting minor mistake. 2010-09-27 19:40:40 +00:00
wirawan 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.
2010-09-10 21:24:56 +00:00
wirawan 379e83fdec * Added epsilon() function to find out the granuality of a given floating
point type.
2010-09-10 21:23:59 +00:00
wirawan fcba27ae24 * Added list_join, much like dict_join, except for list.
* Added ranges "magic" object to define piecewise ranges.
2010-08-12 19:35:55 +00:00
wirawan 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.
2010-05-28 18:47:56 +00:00
wirawan 3701e5655a * added str_grep and str_igrep. 2010-05-28 18:46:53 +00:00
wirawan 1c6547d3c0 * Added default debug level. 2010-05-28 18:46:16 +00:00
wirawan 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.
2010-05-28 18:45:51 +00:00
wirawan 75d4c2240c * Function ztol: for zeroing out array elements below certain tolerance. 2010-05-28 18:43:59 +00:00
wirawan adbe499db8 * Fitting seemed to work, but still not perfectly. Do not use in production
yet.
2010-05-28 18:43:39 +00:00
wirawan c87ba9dbfa * Minor updates. 2010-05-28 18:43:14 +00:00
wirawan 40ac890d6f * Net-related helper objects.
* Python-based SFTP client.
2010-05-28 18:42:29 +00:00
wirawan 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).
2010-02-24 14:28:13 +00:00
wirawan 733c518735 * Added: density refitter onto a different FFT grid and/or supercell size
(expansion to a larger supercell).
2010-02-24 14:27:23 +00:00
wirawan 8c37b36673 * Template for dirty scripts/experiments. 2010-02-24 14:26:29 +00:00
wirawan ba3fcb6b6f * Added: dict_join to join several dicts, with keys from latter dicts taking
higher precedence.
2010-02-19 18:42:15 +00:00
wirawan 582c7f25aa * Generic generator module. 2010-02-19 18:41:28 +00:00
wirawan 9e7eeca3a2 * import_commands now will *NOT* override built-in python names (like dir,
id). Otherwise, this will result in disaster.
2010-02-19 18:40:19 +00:00
wirawan 69592e9a8f * Added writing facility. Still largely untested. 2010-02-19 18:39:17 +00:00
wirawan 15baf746f9 * Ignore all compiled python modules. 2010-02-11 02:29:51 +00:00
wirawan 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.
2010-02-08 21:49:54 +00:00
wirawan f246d382bf * Fix to make this work with independent pysqlite2 package.
* Allow rows to be returned as sqlite3.Row objects instead of simple tuple.
2010-02-08 20:00:14 +00:00
wirawan 37b556ded8 * Added dict_slice, a slicing tool returning a subset of a given dict
(or other dict-like object).
2010-02-08 19:58:44 +00:00
wirawan 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.
2010-02-08 19:57:35 +00:00
wirawan dfc7a780f9 * Renaming file_db to file_table class.
* Allow record update in somewhat pythonic way (instead of using SQL).
2010-02-08 01:46:12 +00:00
wirawan 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.
2010-02-06 23:21:09 +00:00
wirawan 9de91dcc59 * Don't save python compiled modules. 2010-01-22 18:50:39 +00:00
wirawan 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).
2010-01-22 18:50:09 +00:00
wirawan 605bfb16a2 * Simplified spline interpolation tools for 2-D curves (single curve or
piecewise curve).
2010-01-22 18:48:19 +00:00
wirawan 5af79a8000 * Syntactic sugars for quick-and-dirty python programming. 2010-01-22 18:46:50 +00:00
wirawan c62735c225 * Placeholder for interactive python support. 2010-01-22 18:46:27 +00:00
wirawan 9e62d32873 * Draft of simple nonlinear fitting module for my use. Still not finished yet. 2010-01-22 18:44:59 +00:00