1. 01 Aug, 2020 3 commits
    • Leo Pound Singer's avatar
      Fix error introduced by !20 · e5201e4f
      Leo Pound Singer authored
      e5201e4f
    • Kipp Cannon's avatar
      dbtables: implement working copy mechanism as context manager · 621c98ad
      Kipp Cannon authored
      - removes the need to install a hook into the NamedTemporaryFile instance to delete the corresponding -journal file in the event of program termination.  clean-up is the responsibility of the context manager.
      - backwards compatibility wrappers are provided
      - a small change in calling code is, however, required:  in all calling codes, much change connect(tmpname) to connect(str(tmpname)).  this can be done in advance of the python-ligo-lw release.
      - fixes issue #!14
      621c98ad
    • Kipp Cannon's avatar
      utils: tweak handling of new "compress" keyword · e11928f7
      Kipp Cannon authored
      - the default value for the existing "gz" keyward argument is "False", not None, which breaks the error checking the temporary _normalize_compress_kwarg() function.  this patch fixes the error checking, but it's not as good as it used to be because some mistakes can't be tested for.
      e11928f7
  2. 30 Jul, 2020 6 commits
  3. 29 Jul, 2020 1 commit
  4. 28 Jul, 2020 2 commits
  5. 06 Jul, 2020 1 commit
    • Leo Pound Singer's avatar
      Replace glue.text_progress_bar with tqdm · 55b22515
      Leo Pound Singer authored
      Glue is not being actively maintained. Tqdm is a very popular and
      lightweight progress bar and is nicer than the one in glue anyway.
      So many packages use tqdm that the user is likely to already have
      it on their system.
      55b22515
  6. 16 Apr, 2020 1 commit
  7. 14 Apr, 2020 1 commit
  8. 11 Mar, 2020 1 commit
  9. 26 Feb, 2020 2 commits
  10. 21 Feb, 2020 3 commits
  11. 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
      https://bugs.python.org/issue36381).
      
      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.
      f0246f47
  12. 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()
      f7dd451d
    • 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
      052048fd
    • Kipp Cannon's avatar
      param.py: remove unused import · 6829e093
      Kipp Cannon authored
      6829e093
    • 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
      63217950
    • Kipp Cannon's avatar
      b8d0824c
    • 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()
      5faced2e
  13. 06 Nov, 2019 1 commit
  14. 09 Sep, 2019 1 commit
    • 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.
      30e6ea09
  15. 27 Aug, 2019 2 commits
  16. 11 Jul, 2019 1 commit
  17. 13 Jun, 2019 2 commits
  18. 23 Apr, 2019 1 commit
  19. 10 Apr, 2019 4 commits