1. 10 Apr, 2020 1 commit
    • Leo Pound Singer's avatar
      Add optional Zstandard compression · 00e189e6
      Leo Pound Singer authored
      Zstandard provides much faster compression and decompression than
      gzip at any compression ratio. The "zstandard" Python package is
      an optional dependency to enable this new feature.
      I tried running `ligolw_sqlite` on a recent gstlal coinc database
      to convert it to XML. The uncompressed XML file took 32 seconds to
      write and was 300M in size. The gzip-compressed XML file took 52
      seconds and was 98M. The Zstandard-compressed XML file took 35
      seconds and was 87M in size.
      In short, Zstandard compression will give comparable file sizes
      to gzip but with compression/decompression time that is negligible
      compared to LIGO-LW processing itself.
  2. 11 Mar, 2020 1 commit
  3. 26 Feb, 2020 10 commits
  4. 21 Feb, 2020 5 commits
  5. 20 Feb, 2020 1 commit
  6. 18 Feb, 2020 1 commit
    • Leo Pound Singer's avatar
      Silence Python 3.8 PY_SSIZE_T_CLEAN warning · f0246f47
      Leo Pound Singer authored
      In Python 3, `PyArg_ParseTuple` and friends can return either an int
      or a Py_ssize_t type for the length in an argument of the form
      `"s#"`, `"y#"`, `"u#"`, etc, controlled by whether the preprocessor
      macro `PY_SSIZE_T_CLEAN` is defined when the header `Python.h` is
      included. A future version of Python will only support `PY_SSIZE_T`.
      In Python 3.8, there was a deprecation warning added (see
      Define the `PY_SSIZE_T_CLEAN` macro to suppress the hundreds or
      thousands of deprecation warnings that may be printed when reading
      a LIGO_LW file.
      See also lscsoft/glue!69.
  7. 14 Nov, 2019 6 commits
    • Kipp Cannon's avatar
      utils.process: coalesce code into register_to_xmldoc() · f7dd451d
      Kipp Cannon authored
      - merge append_process(), append_process_params() and process_params_from_dict() together into register_to_xmldoc()
    • Kipp Cannon's avatar
      lsctables: gpsproperty work · 052048fd
      Kipp Cannon authored
      - rewrite the documentation related to encoding of +/- inf
      - add support for +/-inf to gpsproperty_with_gmst
    • Kipp Cannon's avatar
      param.py: remove unused import · 6829e093
      Kipp Cannon authored
    • Kipp Cannon's avatar
      array.Array: add .shape property · 63217950
      Kipp Cannon authored
      - with it, add additional sanity checks to I/O code
      - add documentation, doctest unit tests of all of this code
    • Kipp Cannon's avatar
    • Kipp Cannon's avatar
      ligo.lw.utils.process: move some code upstream · 5faced2e
      Kipp Cannon authored
      - transform some of the logic into methods of classes in lsctables.
      - get_username() is converted to a static method of the ProcessTable class
      - the Process class gets a .initialized() class method to create one with sensible defaults copied from the append_process() function in process.py
      - process.py's append_process() is replaced with a wrapper around the new method
      - set_process_end_time() is turned into a wrapper around a new .set_end_time_now() method added to the Process class
      - process_params_from_dict() + append_process_params() together are made to rely on the .pyvalue machinery of the ProcessParams class to choose the correct type string, removing all of that code from process.py
      - ProcessParams's .append() method's invalid type string check is made to be more verbose to help debug problems
      - delete abandoned register_to_ldbd()
  8. 06 Nov, 2019 3 commits
  9. 09 Sep, 2019 2 commits
    • Kipp Cannon's avatar
      distribute programs in their own package · 30ec04a3
      Kipp Cannon authored
      - allows a conflict to be broken when both python2 and python3 versions are built.
    • Kipp Cannon's avatar
      table.py: remove ._end_of_rows() hook · 30e6ea09
      Kipp Cannon authored
      - nothing ever used it except the DBTable class, which ran a .commit() on the database.
      - the .commit() is more easily implemented as a .endElement() override in a custom Stream handeler, and I've never figured out if the .commit() is even beneficial at all.
      - this patch removes the hook, leading to a *miniscule* performance improvement loading documents, and a conceptual simplification of the code.
  10. 27 Aug, 2019 2 commits
  11. 11 Jul, 2019 1 commit
  12. 13 Jun, 2019 6 commits
  13. 31 May, 2019 1 commit