mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Do deprecations for 2026.09 release (#9213)
* Do deprecations * update release notes
This commit is contained in:
@@ -117,11 +117,6 @@ enum class StereoSpecified {
|
|||||||
struct RDKIT_GRAPHMOL_EXPORT StereoInfo {
|
struct RDKIT_GRAPHMOL_EXPORT StereoInfo {
|
||||||
// REVIEW: absolute stereo data member?
|
// REVIEW: absolute stereo data member?
|
||||||
|
|
||||||
// used to mark missing atoms
|
|
||||||
[[deprecated(
|
|
||||||
"please use Atom::NOATOM")]] inline static constexpr unsigned int NOATOM =
|
|
||||||
Atom::NOATOM;
|
|
||||||
|
|
||||||
StereoType type = StereoType::Unspecified;
|
StereoType type = StereoType::Unspecified;
|
||||||
StereoSpecified specified = StereoSpecified::Unspecified;
|
StereoSpecified specified = StereoSpecified::Unspecified;
|
||||||
unsigned centeredOn = Atom::NOATOM;
|
unsigned centeredOn = Atom::NOATOM;
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ struct chirality_wrapper {
|
|||||||
.value("Bond_Trans", Chirality::StereoDescriptor::Bond_Trans);
|
.value("Bond_Trans", Chirality::StereoDescriptor::Bond_Trans);
|
||||||
python::class_<Chirality::StereoInfo>("StereoInfo",
|
python::class_<Chirality::StereoInfo>("StereoInfo",
|
||||||
"Class describing stereochemistry")
|
"Class describing stereochemistry")
|
||||||
.def_readonly("NOATOM", &Atom::NOATOM,
|
|
||||||
"marker for unspecified int values")
|
|
||||||
.def_readwrite("type", &Chirality::StereoInfo::type,
|
.def_readwrite("type", &Chirality::StereoInfo::type,
|
||||||
"the type of stereo")
|
"the type of stereo")
|
||||||
.def_readwrite("specified", &Chirality::StereoInfo::specified,
|
.def_readwrite("specified", &Chirality::StereoInfo::specified,
|
||||||
|
|||||||
@@ -150,16 +150,6 @@ bool hanoi(int *base, int nel, int *temp, int *count, int *changed,
|
|||||||
}
|
}
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
template <typename CompareFunc>
|
template <typename CompareFunc>
|
||||||
[[deprecated("Use the overload that takes std::span and std::vector instead")]]
|
|
||||||
void hanoisort(int *base, int nel, int *count, int *changed,
|
|
||||||
CompareFunc compar) {
|
|
||||||
assert(base);
|
|
||||||
std::vector<int> tempVec(nel);
|
|
||||||
if (detail::hanoi(base, nel, tempVec.data(), count, changed, compar)) {
|
|
||||||
memmove(base, tempVec.data(), nel * sizeof(int));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
template <typename CompareFunc>
|
|
||||||
void hanoisort(std::span<int> &base, std::vector<int> &count,
|
void hanoisort(std::span<int> &base, std::vector<int> &count,
|
||||||
std::vector<int> &changed, CompareFunc compar) {
|
std::vector<int> &changed, CompareFunc compar) {
|
||||||
std::vector<int> tempVec(base.size());
|
std::vector<int> tempVec(base.size());
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ definition is the one with the lowest index, and the second one is the neighbor
|
|||||||
to the first which also has the lowest index.
|
to the first which also has the lowest index.
|
||||||
|
|
||||||
## Code removed in this release:
|
## Code removed in this release:
|
||||||
|
- The version of hanoiSort() that takes raw pointers has been removed. Please use
|
||||||
|
the version that takes std::span and std::vector.
|
||||||
|
- `Chirality::StereoInfo::NOATOM` (C++) and `Chem.StereoInfo.NOATOM` (Python) have
|
||||||
|
been removed. Please use `Atom::NOATOM` and `Chem.Atom.NOATOM`.
|
||||||
|
|
||||||
## Deprecated code (to be removed in a future release):
|
## Deprecated code (to be removed in a future release):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user