Commit Graph

8026 Commits

Author SHA1 Message Date
David Cosgrove
1db4f6e4e1 Trim results after singleLargestFrag = true applied. (#8202)
* Trim results after singleLargestFrag = true applied.

* Fix sort.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-01-30 06:32:03 +01:00
thomp-j
84a9d4a93f Vulnerability fixes (#8116)
* Vulnerability fixes

* Vulnerability fixes

* Move Iterator bounds check to a PRECONDITION for parse_data_sgroup_attr.

* Update MolFileParser.cpp

Remove ill-advised ASCII filter when parsing SDF V3000

* Update MolFileParser.cpp

Remove extra whitespace.

* Squashed commit of the following:

commit 1a1279c137afeca77d4fd68b287a7e36c6bf5c37
Merge: 7d0765c8b 3d2a43470
Author: James Thompson <thompj@google.com>
Date:   Wed Dec 18 14:22:29 2024 +0000

    Merge branch 'vuln_fix' of https://github.com/thomp-j/rdkit_vuln into vuln_fix

commit 7d0765c8ba2e0be54649613fce2f61545ad5d9d2
Author: James Thompson <thompj@google.com>
Date:   Wed Dec 18 14:20:54 2024 +0000

    Squashed commit of the following:

    commit 5a5902a874109d42cc4a20de535bdca0855c429b
    Merge: ec0ff4ee2 3d2a43470
    Author: James Thompson <thompj@google.com>
    Date:   Wed Dec 18 14:18:02 2024 +0000

        Remove whitespace

    commit 3d2a43470f
    Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
    Date:   Wed Dec 18 09:08:57 2024 -0500

        Update MolFileParser.cpp

        Remove extra whitespace.

    commit a8a718923c
    Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
    Date:   Wed Dec 18 09:08:09 2024 -0500

        Update MolFileParser.cpp

        Remove ill-advised ASCII filter when parsing SDF V3000

    commit 270136d6c0
    Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
    Date:   Wed Dec 18 09:07:05 2024 -0500

        Move Iterator bounds check to a PRECONDITION for parse_data_sgroup_attr.

    commit ec0ff4ee29e9cca5bbd9591d30f8a96646484ec5
    Merge: ca4ed2faa 2d257b119
    Author: James Thompson <thompj@google.com>
    Date:   Wed Dec 18 14:04:30 2024 +0000

        Merge branch 'vuln_fix' of https://github.com/thomp-j/rdkit_vuln into vuln_fix

    commit ca4ed2faa4219abfd97628d529be3a1fd97048bf
    Merge: c11caffbd 63123278c
    Author: James Thompson <thompj@google.com>
    Date:   Wed Dec 18 13:59:48 2024 +0000

        Merge branch 'vuln_fix' of https://github.com/thomp-j/rdkit_vuln into vuln_fix

    commit 2d257b1194
    Merge: d45612334 74fc77f95
    Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
    Date:   Wed Dec 18 09:03:06 2024 -0500

        Merge branch 'rdkit:master' into vuln_fix

    commit d456123344
    Merge: c11caffbd 63123278c
    Author: James Thompson <thompj@google.com>
    Date:   Wed Dec 18 13:59:48 2024 +0000

        Merge branch 'vuln_fix' of https://github.com/thomp-j/rdkit_vuln into vuln_fix

    commit c11caffbd7
    Author: James Thompson <thompj@google.com>
    Date:   Tue Dec 17 15:26:41 2024 +0000

        Vulnerability fixes

    commit 74fc77f959
    Author: Paolo Tosco <paolo.tosco.mail@gmail.com>
    Date:   Wed Dec 18 13:40:57 2024 +0100

        normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter (#8107)

        * normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter

        * Update Code/GraphMol/Depictor/catch_tests.cpp

        Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

        * fix catch test

        ---------

        Co-authored-by: ptosco <paolo.tosco@novartis.com>
        Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

    commit e589f173fd
    Author: David Cosgrove <davidacosgroveaz@gmail.com>
    Date:   Wed Dec 18 04:14:11 2024 +0000

        Use endian-aware read/write for length of string. (#8105)

        * Use endian-aware read/write for length of string.

        * Re-run clang-format.

        ---------

        Co-authored-by: David Cosgrove <david@cozchemix.co.uk>

    commit ce35b3c25b
    Author: David Cosgrove <davidacosgroveaz@gmail.com>
    Date:   Wed Dec 18 04:12:07 2024 +0000

        SynthonSearch synth check (#8109)

        * Catch errors when creating products.

        * Extra python test.

        * Fix formatting.

        ---------

        Co-authored-by: David Cosgrove <david@cozchemix.co.uk>

    commit 63123278ca
    Author: James Thompson <thompj@google.com>
    Date:   Tue Dec 17 15:26:41 2024 +0000

        Vulnerability fixes

    commit e640915d4e
    Author: Nikitas Rontsis <nrontsis@gmail.com>
    Date:   Tue Dec 17 15:11:40 2024 +0000

        Avoid unnecessary matching (#8111)

    commit 5aed3d886b
    Author: Greg Landrum <greg.landrum@gmail.com>
    Date:   Mon Dec 16 16:59:13 2024 +0100

        Fixes #8096 (#8104)

        * add test

        * Fixes #8096

        * change in response to review

    commit 6dce5d4080
    Author: Greg Landrum <greg.landrum@gmail.com>
    Date:   Sun Dec 15 05:58:20 2024 +0100

        Fixes #1670 (#8093)

        * add missing descriptors to Lipinski.py
        Fixes #1670

        * add to descriptor list

commit 3d2a43470f
Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
Date:   Wed Dec 18 09:08:57 2024 -0500

    Update MolFileParser.cpp

    Remove extra whitespace.

commit a8a718923c
Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
Date:   Wed Dec 18 09:08:09 2024 -0500

    Update MolFileParser.cpp

    Remove ill-advised ASCII filter when parsing SDF V3000

commit 270136d6c0
Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
Date:   Wed Dec 18 09:07:05 2024 -0500

    Move Iterator bounds check to a PRECONDITION for parse_data_sgroup_attr.

commit 2d257b1194
Merge: d45612334 74fc77f95
Author: thomp-j <58603847+thomp-j@users.noreply.github.com>
Date:   Wed Dec 18 09:03:06 2024 -0500

    Merge branch 'rdkit:master' into vuln_fix

commit d456123344
Merge: c11caffbd 63123278c
Author: James Thompson <thompj@google.com>
Date:   Wed Dec 18 13:59:48 2024 +0000

    Merge branch 'vuln_fix' of https://github.com/thomp-j/rdkit_vuln into vuln_fix

commit c11caffbd7
Author: James Thompson <thompj@google.com>
Date:   Tue Dec 17 15:26:41 2024 +0000

    Vulnerability fixes

commit 74fc77f959
Author: Paolo Tosco <paolo.tosco.mail@gmail.com>
Date:   Wed Dec 18 13:40:57 2024 +0100

    normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter (#8107)

    * normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter

    * Update Code/GraphMol/Depictor/catch_tests.cpp

    Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

    * fix catch test

    ---------

    Co-authored-by: ptosco <paolo.tosco@novartis.com>
    Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

commit e589f173fd
Author: David Cosgrove <davidacosgroveaz@gmail.com>
Date:   Wed Dec 18 04:14:11 2024 +0000

    Use endian-aware read/write for length of string. (#8105)

    * Use endian-aware read/write for length of string.

    * Re-run clang-format.

    ---------

    Co-authored-by: David Cosgrove <david@cozchemix.co.uk>

commit ce35b3c25b
Author: David Cosgrove <davidacosgroveaz@gmail.com>
Date:   Wed Dec 18 04:12:07 2024 +0000

    SynthonSearch synth check (#8109)

    * Catch errors when creating products.

    * Extra python test.

    * Fix formatting.

    ---------

    Co-authored-by: David Cosgrove <david@cozchemix.co.uk>

commit 63123278ca
Author: James Thompson <thompj@google.com>
Date:   Tue Dec 17 15:26:41 2024 +0000

    Vulnerability fixes

commit e640915d4e
Author: Nikitas Rontsis <nrontsis@gmail.com>
Date:   Tue Dec 17 15:11:40 2024 +0000

    Avoid unnecessary matching (#8111)

commit 5aed3d886b
Author: Greg Landrum <greg.landrum@gmail.com>
Date:   Mon Dec 16 16:59:13 2024 +0100

    Fixes #8096 (#8104)

    * add test

    * Fixes #8096

    * change in response to review

commit 6dce5d4080
Author: Greg Landrum <greg.landrum@gmail.com>
Date:   Sun Dec 15 05:58:20 2024 +0100

    Fixes #1670 (#8093)

    * add missing descriptors to Lipinski.py
    Fixes #1670

    * add to descriptor list

commit a4cdf5d21d
Author: Greg Landrum <greg.landrum@gmail.com>
Date:   Sun Dec 15 05:58:03 2024 +0100

    Fixes #8092 (#8094)

    * Fixes #8092
    cross-platform file stuff is just soooooo fun

    * response to review

    * works on windows

commit b7de0585ca
Author: Greg Landrum <greg.landrum@gmail.com>
Date:   Sat Dec 14 18:21:55 2024 +0100

    Add drawMols3D() and improve documentation for IPythonConsole (#8083)

    * Fixes #8082
    more docs

    * changes in response to review

commit 736e309f10
Author: David Cosgrove <davidacosgroveaz@gmail.com>
Date:   Sat Dec 14 17:21:29 2024 +0000

    Fix empty results bug. (#8099)

    Co-authored-by: David Cosgrove <david@cozchemix.co.uk>

commit c90cee9b77
Author: Greg Landrum <greg.landrum@gmail.com>
Date:   Sat Dec 14 17:08:43 2024 +0100

    Add Molecular Interaction Fields (#7993)

    * Add RealValueVect.

    * Add UniformRealValueGrid3D

    * Add Molecular Interaction Fields (MIFs)

    * line endings

    * cherry-pick f1bc94a4c8

    * format

    * Adapt tests for python3.

    * Adapt RealValueVector pickling for python3.

    * Speed-up of MIF calculations.

    * Bugfix in MIFDescriptors.cpp.

    * all tests pass

    * clean up some memory leaks

    * update copyrights

    * rename

    * rename the library

    * complete the rename

    * lost file

    * another forgotten file

    * cleanup

    * clang-tidy

    * clang-tidy

    * windows DLL builds work

    * python wrapper and tests cleanup

    * convert to catch2 testing

    * switch RealValueVect to use std::vector

    * remove obsolete friend

    * - Replace explicit loops with stdlib implicit equivalents
    - Replace explicit types with auto where possible
    - Avoid unnecessary copy operations where possible
    - Replace raw pointers with exception-safe unique_ptr
    - Replace C-style #define with constexpr
    - Replace C-style casts with C++ casts
    - Replace C-style arrays with std::vector
    - Avoid code duplication with templated operators
    - Replace VdWaals class taking multiple atom type definitions and force-field name as string parameter with force-field-specific classes deriving from an abstract VdWaals class
    - Replace x,y,z doubles with Point3D class where possible
    - Removed unused (and untested) DistanceToClosestAtom class
    - Renamed some variables and functions for better clarity
    - Converted tabs to spaces
    - Made the mol parameter in cube read/write functions optional for convenience
    - Made the Python wrappers more pythonic (e.g., avoid C++-style passing objects as parameters which are modified in place)
    - Implemented alternative Python class constructors using boost::python::make_constructor rather than with external non-class functions
    - The Python wrappers taking a sequence of Point3D now take a sequence of sequences, such that the output of Conformer.GetPositions() can be passed
    - Made the Python wrapper sequence parsing more robust
    - Removed duplicated code from Python wrappers

    * - avoid an unnecessary copy

    * progress

    * works

    * more cleanup

    * all tests pass

    * changes in response to review

    ---------

    Co-authored-by: dfhahn <dfhahn@users.noreply.github.com>
    Co-authored-by: ptosco <paolo.tosco@novartis.com>

* Adds error message to parse_data_sgroup_attr PRECONDITION
2025-01-30 06:31:44 +01:00
David Cosgrove
9eb6ba428b Add option to omit brackets when drawing query atoms. (#8212)
* Fix bond smoothing - apply atom index offset to products.
Update Hash codes.
Tweak side_by_side_images.py.

* Added hash code for new file.  Doh!

* Option to remove brackets from atom lists.

* Python wrapper.

* Change option name after review.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2025-01-30 06:30:12 +01:00
David Cosgrove
d45395848f Fix bond join smoothing in images of reaction products (#8210)
* Fix bond smoothing - apply atom index offset to products.
Update Hash codes.
Tweak side_by_side_images.py.

* Added hash code for new file.  Doh!

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-01-30 06:29:38 +01:00
Greg Landrum
6c77e3940a support Ctrl-C in conformer generation (#8197) 2025-01-30 06:29:14 +01:00
Hussein Faara
6f60a99468 remove no-op macros and dead code (pt 4) (#8037)
* remove no-op macros and dead code (pt 4)

* review comments
2025-01-30 06:28:59 +01:00
David Cosgrove
48c3c818da Reaction rendered badly with small canvas size (#8211)
* Remove forcing minFontSize to 12 for reactions.

* Add hash code test.
Run Clang-format.

* Typo

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-01-30 06:28:42 +01:00
Greg Landrum
1bce2e225c improve handling of esters, amides, etc. in the v2 tautomer hash (#8173)
* improve handling of esters, amides, etc. in the v2 tautomer hash

Fixes #8090

* cleanup

* extend that logic to aromatic systems

* documentation in response to review
2025-01-30 06:11:10 +01:00
knalice
4a06011561 Update KNIME section in GettingStartedWithContributing (#8174)
* Added section how about to contribute to RDKit in KNIME

* Typo fix and email address added
2025-01-30 06:10:40 +01:00
Brian Kelley
21b79c13e2 Simple fix to allow aromatic CIS/TRANS SMARTS to match molecules (#8192) 2025-01-30 06:10:22 +01:00
mattwedge-elixir
3e04457d4e issue 7650 - update GetMolLayers return typehint (#8189)
* update return type

* try using typing.Dict
2025-01-30 06:09:47 +01:00
David Cosgrove
1ddf5846d7 Move creation of 2D coords to before markUnspecifiedStereoAsUnknown. (#8179)
Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-01-30 06:09:19 +01:00
David Cosgrove
6a2e54e529 Making SynthonSearch respond to Ctrl-C (#8153) 2025-01-30 06:08:48 +01:00
David Cosgrove
ecb0c31ba3 Optimisations to fingerprint search of Synthon Space (#8152)
* First pass at approximate FP check.

* Tidy and Python wrapper.

* More tidying.

* Add addFP and subtractFP to binary file.

* Minor tidy.

* In splits code, check for duplicate fragmentations.

* Update test results.

* Tidy.

* Set configurable limit on number of fragments generated from query.

* Stash prior to trying counts fps.

* Stash count fps.

* Back to bit fingerprints again.

* Extra comment.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2025-01-30 06:02:40 +01:00
Greg Landrum
8e9e1d9574 some optimizations of triangle smoothing (#8190) 2025-01-30 05:54:56 +01:00
Rubén Chaves
167daac298 Update InChi links (#8187)
For the user manual https://www.inchi-trust.org/download/104/InChI_UserGuide.pdf can be also used, but is an older one.
2025-01-30 05:54:36 +01:00
Greg Landrum
a0c25bec33 bump the inchi version to 1.07.2 (#8176)
* bump the inchi version
move to using the github distributions

* update cartridge behavior

* further fix

* typos!
2025-01-30 05:54:23 +01:00
Nic Zonta
1dd96a022d fix problems with template matching (#7975)
* fix compilation error

* wip

* undo change to CMakeLists

* add test

---------

Co-authored-by: greg landrum <greg.landrum@gmail.com>
2025-01-30 05:54:06 +01:00
Greg Landrum
9f1c93ddd5 some cmake cleanups (#8171)
* Fixes #8139

* Fixes #8138
2025-01-30 05:53:16 +01:00
Anton Siomchen
b4f3330915 add highlight to _repr_html with simplified solution (#8166) 2025-01-30 05:53:02 +01:00
Greg Landrum
d38a5a205a Fixes #8162 (#8164)
* remove extraneous printing

* Fixes #8162
2025-01-30 05:52:44 +01:00
Nikitas Rontsis
a9c6145a2d Conformer embedding timeout (#8110)
* Conformer embedding timeout

* Add README for patching

* Don't raise Exception but set EmbedFailureCauses on timeout.

* Fix

* Remove wrongly added README

* Debug segfault

* Improve logging of failures

* Fix pointer reference

* Don't use optional
2025-01-30 05:52:21 +01:00
Greg Landrum
2349866ed6 Fixes #6679 (#8163) 2025-01-30 05:52:04 +01:00
Hussein Faara
701395b9da remove no-op macros and dead code (pt 2) (#8035)
* remove no-op macros and dead code (pt 2)

* test failures due to whitespace changes?

* actually run the testFeatures tests

---------

Co-authored-by: greg landrum <greg.landrum@gmail.com>
2025-01-30 05:51:09 +01:00
Richard Gowers
2090717371 fix SetPositions when using strided numpy array (#8150)
* fix SetPositions when using strided numpy array

previously SetPositions assumed that the provided numpy array used contiguous-C stride patterns

* cast to a const pointer to avoid compiler warning
2025-01-30 05:50:54 +01:00
Eisuke Kawashima
977cc9ac11 fix: apply modernize-use-nullptr (#8134)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-01-30 05:50:36 +01:00
Ricardo Rodriguez
7eb5b422f9 Fix leaks in MIF wrappers (#8143)
* fix leaks in wrappers

* decref on not-sequence obj or bad seq size

* PySequence in DistGeom wrappers
2025-01-30 05:50:20 +01:00
Ricardo Rodriguez
2a5dd00288 fix (#8144) 2025-01-30 05:49:58 +01:00
bbu-imdea
04b008e0aa efgs code (#8145) 2025-01-30 05:49:37 +01:00
Jeremy Monat
cb13d42e27 Expand on Explicit Valence Error - Partial Sanitization recipe (#8131)
* Expand on Explicit Valence Error - Partial Sanitization recipe, including adding molecular structures for the unsanitized and partially-sanitized iterations

* Format `argument=value`

* Fix typo in formatting

* Update label to *Original* Source

* Correct rdqueries import, and formatting of testoutput blocks

* Print out hybridization create doctests
2025-01-30 05:49:23 +01:00
tadhurst-cdd
b475bc62a5 relax two tolerances for ARM64 builds (#8148) 2025-01-30 05:49:08 +01:00
Jeremy Monat
c4a9437382 Explain how to run doctests locally (#8135) 2025-01-30 05:48:52 +01:00
Greg Landrum
df2a783c8b Fixes two out-of-bounds bugs in the InChI wrapper (#8126) 2025-01-30 05:47:44 +01:00
tadhurst-cdd
bcef6669fa Fix for removing bad stereo indications from Atropisomer parsing (#7984)
* Fix for removing bad stereo indications

* removed one unneed change

* removed mistaken change
2025-01-30 05:46:52 +01:00
Jeremy Monat
5f3f80a681 GetAtomsMatchingQuery: Tell where to find query options for (#8132)
* For GetAtomsMatchingQuery, note that "Atom query options are given in the rdkit.Chem.rdqueries module"

* wording change

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2025-01-30 05:46:34 +01:00
tadhurst-cdd
bbb9c2d04e Bad radical values are now ignored for MRV generation (#8130)
* Bad radical values are now ignored for MRV generation

* Update Code/GraphMol/MarvinParse/MarvinWriter.cpp

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2025-01-30 05:46:19 +01:00
David Cosgrove
9a1125c91f SynthonSpace search timeout (#8070)
* Add timeout to searches.

* Correct docstring.

* Include chrono header.

* Get it compiling with gcc.

* And then clang didn't like it...

* Revert to tmpnam as msktemp isn't available on Windows.

* Response to review.
Run time no longer saved in SearchResults.
Timeout check not tied to size of results.
Made the test timeout shorter.

* Fix the Python wrapper.

* Shamelessly steal the better timeout method from PR8110.

* suggested changes

* be more conservative about what does not time out

the CI machines can be surprisingly slow

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2025-01-30 05:45:57 +01:00
greg landrum
5584650151 tag release Release_2024_09_4 2024-12-20 09:56:08 +01:00
Jeremy Monat
8334e3dfc5 Add section How to Build RDKit Documentation Locally (#8120) 2024-12-20 08:54:43 +01:00
Greg Landrum
385165ee7d bump the max runtime for the slower CI builds to 120 minutes (#8122) 2024-12-20 08:54:14 +01:00
David Cosgrove
9fcaf3b271 Handle DOS files in SynthonSpaceSearch (#8075)
* Handle DOS files.

* Smaller test file.
Add DOS file to .gitattributes.

* Update Code/GraphMol/SynthonSpaceSearch/substructure_search_catch_tests.cpp

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2024-12-20 08:51:14 +01:00
Eisuke Kawashima
83d47fc907 chore: update .gitignore (#8055)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2024-12-20 08:46:32 +01:00
Paolo Tosco
11ee676efd - str_to_c() should initialize len to 0 even if memory allocation fails (#8112)
- str_to_c() should check the ptr returned by malloc for non-nullness before using it
- change has_coords() mol_pkl parameter to const
- use assert.equal in JS tests where possible

Co-authored-by: ptosco <paolo.tosco@novartis.com>
2024-12-20 08:44:56 +01:00
Greg Landrum
0dfc28f656 allow specified chiral features to SSS match unspecified features (#8115) 2024-12-20 08:44:42 +01:00
Greg Landrum
c30b97d030 bump the max runtime for the slower CI builds to 120 minutes (#8122) 2024-12-19 10:15:40 +01:00
greg landrum
7ba2b3773c fix a cherry-pick inconsistency 2024-12-19 10:13:18 +01:00
Paolo Tosco
f4d4a9fe19 normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter (#8107)
* normalizeDepiction() should always center coordinates on the coordinate centroid, irrespective of the canonicalize parameter

* Update Code/GraphMol/Depictor/catch_tests.cpp

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>

* fix catch test

---------

Co-authored-by: ptosco <paolo.tosco@novartis.com>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2024-12-19 10:00:40 +01:00
David Cosgrove
ba35526646 Use endian-aware read/write for length of string. (#8105)
* Use endian-aware read/write for length of string.

* Re-run clang-format.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2024-12-19 10:00:24 +01:00
David Cosgrove
ff1d6f8f8b SynthonSearch synth check (#8109)
* Catch errors when creating products.

* Extra python test.

* Fix formatting.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2024-12-19 10:00:07 +01:00
David Cosgrove
50ff4ff4c0 Handle DOS files in SynthonSpaceSearch (#8075)
* Handle DOS files.

* Smaller test file.
Add DOS file to .gitattributes.

* Update Code/GraphMol/SynthonSpaceSearch/substructure_search_catch_tests.cpp

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2024-12-19 10:00:01 +01:00