Skip to content
Snippets Groups Projects
  1. May 02, 2023
  2. Mar 29, 2023
    • Xavier Robin's avatar
      6bc74735
    • Xavier Robin's avatar
      fix: consistent behavior of GetHashCode/hash_code · 24d74d13
      Xavier Robin authored
      Behavior was made more consistent. Methods are now available
      on all the (Atom|Residue|Chain)(Handle|View)s, including in
      Python, and documented. A hash code is an `unsigned long`,
      and requesting it on an invalid handle raises an `InvalidHande`
      exception.
      In practice, the following was implemented:
      - Exported to Python for ChainHandles
      - Added method on ResidueViews and ChainViews (including Python export)
      - Raise InvalidHandle error on ResidueHandle (was: return 0)
      - Explicitly check validity of ChainHandle (although behavior was to
        throw an error even without explicit check)
      - Changed return value from `long` to `unsigned long` on
        Atom(View|Handle)s.
      24d74d13
    • Xavier Robin's avatar
      fix: guard against invalid handles · 98e4ebc9
      Xavier Robin authored
      GetPrev() or GetNext() may return invalid residue handles. It is
      unclear what happens next, find() may simply (hopefully) find nothing,
      however this feels unsafe. This fix guards against this possibility
      by checking for handles validity before giving them to find().
      98e4ebc9
  3. Feb 21, 2023
  4. Feb 01, 2023
  5. Jan 26, 2023
  6. Jan 24, 2023
  7. Jan 18, 2023
  8. Jan 17, 2023
  9. Jan 13, 2023
  10. Dec 23, 2022
  11. Oct 04, 2022
  12. Sep 13, 2022
  13. Aug 26, 2022
  14. Aug 22, 2022
  15. May 10, 2022
  16. Apr 27, 2022
  17. May 05, 2021
  18. Feb 20, 2021
  19. Feb 09, 2021
  20. Dec 11, 2020
  21. Aug 06, 2020
Loading