This patch creates the top level module 'cdk-legacy' where we can place deprecated classes, and tools which are not maintained or considered harmful. Fairly large due to unforeseen regressions but should be no additional test failures. This first patch only moves over the aromaticity perception and SwissArmyKnife.
https://github.com/johnmay/cdk/compare/cdk:master...patch/deprecated-module
Comment on GitHub.
Thanks,
Have commented there, but in summary
J
Last edit: John May 2014-07-18
So, how is this model different from cdk() ?
This is purely a convenience method… note they are not the same object. The Aromaticity.cdkLegacy() combined the ‘cdk()’ model with a set of cycles.
ElectronDontation ed = ElectronDontation.cdk();
Aromaticity arom = new Aromaticity(ed, Cycles.cdkAromaticSet());
Aromaticity arom = Aromaticity.cdkLegacy();
then I would prefer it to be called cdk() or cdkModel()...
I would prefer to use that for one that doesn’t only test a subset of rings:
This cdkLegacy() is literally to replicate the existing method that only checks a subset of rings so that I could relatively harmlessly replace the usage in tests.
J
Just to clarify some more… the new arom is intended to be inject into a tool.
FP for = new Fingerprinter(new Aromaticity(...));
The ‘Aromaticity.cdkLegacy()’ is for the existing usages that don’t do this.
J
OK, so the model is the same, except that the legacy CDKHueckelAromTest class was using SSSR, which is the subset you are referring to?
If so, then I agree.
Yep - we could change the tests over to the new all cycles based method but the patch was already large.
J
Sent from my iPhone
Related
Patches:
#785John, maybe we should sit down with Nina and make a page like this, with the various new Aromaticity() options: http://apps.ideaconsult.net:8080/ambit2/depict/cdk?search=c1ccc2c%28c1%29CC4NCCc3cccc2c34
Possible, but I'm not sure how useful it would be?
I've added some additional documentation to the 'cdkLegacy()' method that gives more details that just 'replicates CDKHAD'.
What else is needed on this patch?
Applied and pushed.