Commit Graph

97 Commits

Author SHA1 Message Date
Geoffrey Hutchison
3e71f5a35b Update website to openbabel.org (long overdue). 2010-10-10 01:24:39 +00:00
Noel O'Boyle
e4f82feb86 testpybel.py: Fix typo in commit of a few days ago. Test should pass now. 2010-10-07 19:03:48 +00:00
Noel O'Boyle
5e87842233 Rename pybel versions for Py 2 and 3 so that they can be imported directly during testing. Associated changes in testpybel setup.py and testbindings.py.
This fixes a problem running testbindings.py in the testsuite on Windows. (It was importing the globalling installed pybel.py)
2010-10-04 12:37:06 +00:00
Noel O'Boyle
7fa8ad6093 * scripts/python/examples/testpybel.py: Make test of number of descriptors more general. Should pass now. 2010-10-02 19:23:48 +00:00
Noel O'Boyle
0c0095ba53 * scripts/python/pybel_py*.x.py: Synch with cinfony. Add support for
MCDL 2D coordinate generation when calling 'draw()'. MCDL is the
	default. To use	OASA, specify method="oasa"
2010-09-09 21:42:22 +00:00
Noel O'Boyle
7cf0b904e4 Get pybel tests to pass once again on Windows. 2010-08-11 15:45:33 +00:00
Noel O'Boyle
acd2e935e2 * Set svn:eol-style to native for all text files. 2010-06-03 14:29:31 +00:00
Noel O'Boyle
d102bde7ad Minor fix for installing Python bindings on Linux 2010-06-01 08:36:30 +00:00
Noel O'Boyle
56b776be94 More corrections due to new location of swig outputs 2010-05-09 19:45:42 +00:00
Noel O'Boyle
f57656970e 2010-04-26 Noel O'Boyle
* test/CMakeLists.txt, test/testbindings.py, test/test_pybel.py:
	Separate the pybel tests from the Python binding tests
	* scripts/python/examples/testpybel.py: Get the Pybel tests to pass on
	Linux
	* scripts/CMakeLists.txt: Force the Python build to output to
	scripts/pybuild. Otherwise it created a temporary folder whose name
	differed from platform to platform (e.g. lib.linux-x86_64.2.6) which
	made it difficult to handle automatically.
2010-04-27 09:35:35 +00:00
Noel O'Boyle
3d6dc5d93b 2010-04-25 Noel O'Boyle
* test\CMakeLists.txt, test\testbindings.py, test\testexample.py:
	Enable the use of the Python bindings for testing. Run the Pybel
	tests. Add a simple example test as a template.
	* scripts\python\examples\testpybel.py: Get the Pybel tests to pass
2010-04-25 11:30:10 +00:00
Noel O'Boyle
5934edee4b 2010-03-13 Noel O'Boyle
* scripts/CMakeLists.txt, scripts/python/setup.py: Compile the
	SWIG bindings manually.
2010-03-13 11:57:35 +00:00
Noel O'Boyle
afb12d1eb7 2009-09-21 Noel O'Boyle <baoilleach@gmail.com>
* scripts/*: Copied + pasted the scripts directory from 22x as a number
	of commits were never merged.
2009-09-21 11:12:00 +00:00
Tim Vandermeersch
8940190757 Add in the new python files (already available on 22x 2009-07-18 22:35:00 +00:00
Tim Vandermeersch
f30e3c476a Removed pybel.py which has already been replaced 2009-07-18 22:34:38 +00:00
Tim Vandermeersch
16302b65bc Merged revisions 3091-3094,3097-3100 via svnmerge from
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-2-x

........
  r3091 | ghutchis | 2009-06-22 00:24:46 +0200 (Mon, 22 Jun 2009) | 5 lines
  
          * src/chains.cpp (OpenBabel): Fix for PR#2691618. When writing
          hydrogen atoms without chain names, make sure there are never
          spaces.
........
  r3092 | ghutchis | 2009-06-22 15:24:47 +0200 (Mon, 22 Jun 2009) | 4 lines
  
          * src/generic.cpp: Fix unit cell when setting possibly zero
          translation vectors ( e.g. PR#1961604).
........
  r3093 | timvdm | 2009-06-22 22:54:24 +0200 (Mon, 22 Jun 2009) | 2 lines
  
  Fix phmodel.txt rules to match both free & polymerized amino acids.
........
  r3094 | ghutchis | 2009-06-24 00:06:49 +0200 (Wed, 24 Jun 2009) | 2 lines
  
  Updated from Tim's recent change.
........
  r3097 | ghutchis | 2009-06-24 21:26:55 +0200 (Wed, 24 Jun 2009) | 2 lines
  
  Added Craig's changes for randomized SMILES order.
........
  r3098 | ghutchis | 2009-06-25 05:36:47 +0200 (Thu, 25 Jun 2009) | 4 lines
  
          * src/generic.cpp (OBUnitCell): Make sure to set the space group
          to P1 by default and after FillUnitCell.
........
  r3099 | ghutchis | 2009-06-25 05:36:56 +0200 (Thu, 25 Jun 2009) | 6 lines
  
          * src/formats/mopacformat.cpp: Read and write translation vectors,
          if available.
  
          * src/formats/gaussformat.cpp: Ditto
........
  r3100 | ghutchis | 2009-06-25 20:14:18 +0200 (Thu, 25 Jun 2009) | 2 lines
  
  Fix PR#2784880 -- compiling with OPENBABEL_INSTALL set fails (e.g., on MacPorts).
........
2009-07-18 09:55:34 +00:00
Tim Vandermeersch
967ec60730 Merged revisions 3071,3073-3080 via svnmerge from
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-2-x

........
  r3071 | baoilleach | 2009-06-18 11:08:17 +0200 (Thu, 18 Jun 2009) | 1 line
  
  bump python scripting to 1.5
........
  r3073 | ghutchis | 2009-06-19 21:17:13 +0200 (Fri, 19 Jun 2009) | 2 lines
  
  Fix typo in FOR_RINGS_OF_MOL macro.
........
  r3074 | ghutchis | 2009-06-19 23:09:34 +0200 (Fri, 19 Jun 2009) | 6 lines
  
          * src/kekulize.cpp (expandcycle): Fix PR#2705497. Kekulize has
          problems with fused aromatic rings joined by a non-aromatic
          ring. Make sure when expanding aromatic cycles that we only accept
          atoms which are in the *same* ring from OBMol::GetSSSR().
........
  r3075 | ghutchis | 2009-06-20 00:27:22 +0200 (Sat, 20 Jun 2009) | 2 lines
  
  Fix for PR#1814248.
........
  r3076 | ghutchis | 2009-06-20 14:51:29 +0200 (Sat, 20 Jun 2009) | 6 lines
  
          * src/kekulize.cpp (expandcycle): Rewritten as cleaner recursive
          function. Look for largest possible aromatic cycle. Fixes more
          bugs, but still has issues with "figure 8" ring systems,
          e.g. c12n(nnn1)cccc2.
........
  r3077 | ghutchis | 2009-06-20 14:51:51 +0200 (Sat, 20 Jun 2009) | 3 lines
  
          * test/*: Update with recent changes.
........
  r3078 | ghutchis | 2009-06-20 16:57:32 +0200 (Sat, 20 Jun 2009) | 5 lines
  
          * src/kekulize.cpp (expandcycle): Rewritten as cleaner recursive
          function. Look for largest possible aromatic cycle, including
          handling fused "figure 8" ring systems.
........
  r3079 | ghutchis | 2009-06-20 16:57:45 +0200 (Sat, 20 Jun 2009) | 3 lines
  
          * test/*: Update with recent changes.
........
  r3080 | ghutchis | 2009-06-20 17:16:47 +0200 (Sat, 20 Jun 2009) | 2 lines
  
  More fixes -- use Noel's atom precidence. Fixes problems with azole rings with pyrrole vs. pyridynyl atoms.
........
2009-07-18 09:26:46 +00:00
Tim Vandermeersch
4c95b25762 Merged revisions 3063-3068,3070 via svnmerge from
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-2-x

........
  r3063 | baoilleach | 2009-06-16 19:40:47 +0200 (Tue, 16 Jun 2009) | 3 lines
  
  The first of a series of commits where I try to get the CSharp bindings into shape.
  
  Moving Windows-specific files away from scripts/csharp into windows-vc2005/OBCSharp
........
  r3064 | baoilleach | 2009-06-16 20:05:21 +0200 (Tue, 16 Jun 2009) | 1 line
  
  Create openbabel-mono.i, a mono-specific version of openbabel-csharp.i, primarily for use on Linux/MacOSX. It is currently an exact checkout of svn r2805 of openbabel-csharp.i.
........
  r3065 | baoilleach | 2009-06-16 20:17:22 +0200 (Tue, 16 Jun 2009) | 1 line
  
  Update windows release build to use libstdinchi.lib
........
  r3066 | baoilleach | 2009-06-16 21:24:16 +0200 (Tue, 16 Jun 2009) | 1 line
  
  Updates to Windows CSharp build files
........
  r3067 | baoilleach | 2009-06-16 22:17:06 +0200 (Tue, 16 Jun 2009) | 7 lines
  
  Changelog for previous commits
  
  2009-06-16  Noel O'Boyle  <baoilleach@gmail.com>
  
  	* windows-vc2005/OBCSharp and CSharp files in scripts: Separate .NET
  	and Mono SWIG files. Move .NET files to windows-vc2005. Update
  	relevant files.
........
  r3068 | mr_grieves | 2009-06-17 22:18:51 +0200 (Wed, 17 Jun 2009) | 2 lines
  
  Skip selective dynamics line if present -- Thanks for janneb in #avogadro for pointing this out. Also include 'K' and 'k' in coordinate type selection.
........
  r3070 | baoilleach | 2009-06-18 11:06:34 +0200 (Thu, 18 Jun 2009) | 1 line
  
  Minor updates to scripting READMEs
........
2009-07-18 09:15:31 +00:00
Noel O'Boyle
0f0799c777 2008-07-09 Noel O'Boyle <baoilleach@gmail.com>
* scripts/python/pybel.py: Bug fix for make3D for linear molecules.
	Fixes bug 2014055. Minor doc fixes. Remember to close output files
	in Molecule.write()
2008-07-09 12:04:52 +00:00
Noel O'Boyle
f94eab6d2a 2008-07-01 Noel O'Boyle <baoilleach@gmail.com>
* scripts/python/pybel.py: Make pybel use CloneData instead of SetData
2008-07-01 13:49:22 +00:00
Noel O'Boyle
625a89e365 * Reverted r2535 except for changes to scripts/perl/Makefile.PL
* scripts/openbabel-python.i: Updated SWIG interface file to ignore 21 methods of each std::vector created. This should substantially reduce the size of the wrapper code
2008-06-17 19:03:50 +00:00
Geoffrey Hutchison
024240cd78 Split python bindings into multiple pieces. Should solve PR#1905826. 2008-06-05 22:42:47 +00:00
Noel O'Boyle
a9195af4df Pybel: minor fix to test suite for running outside cinfony 2008-05-23 08:33:37 +00:00
Noel O'Boyle
79b8f3db20 Pybel: Synching with cinfony, and getting ready for release as 1.3 2008-05-23 08:19:28 +00:00
Noel O'Boyle
ea6d70b717 * scripts/python/pybel.py: Synch with cinfony 2008-05-07 07:01:06 +00:00
Tim Vandermeersch
206459784e * scripts/python/examples/*.py: Added some force field examples. More
will follow.
2008-04-30 00:01:40 +00:00
Noel O'Boyle
78915a732b Error in my previous commit. 2008-04-01 10:33:11 +00:00
Noel O'Boyle
e160ab259a Fix for MacOSX to allow compilation of Python bindings against local build tree. 2008-03-31 12:43:41 +00:00
Noel O'Boyle
33495778f2 * scripts/python/pybel.py: First attempts at incorporating the recent work by Tim, Geoff and others on geometry optimisation and 3D coordinate generation. 2008-03-23 20:07:00 +00:00
Noel O'Boyle
a093a951ce Made pybel test suite compatible with Python 2.3 2008-02-01 16:28:33 +00:00
Noel O'Boyle
24ccf30c1b Updating perl wrapper to the same as Python. Fixing setup.py for Python as wasn't finding openbabel.so on my system 2008-01-29 09:38:22 +00:00
Noel O'Boyle
37588a1d49 * scripts/python/pybel.py, scripts/python/examples/testpybel.py:
Updated to use plugin descriptors. Changed to create a single instance
	of plugin descriptors and fingerprinters. Also, readfile now raises an
	IOError if the file does not exist.
	* scripts/python/examples/findcoverage.bat: Add .bat file to automate
	calculation of code coverage for pybel
2008-01-17 12:08:31 +00:00
Geoffrey Hutchison
858f8a39f9 * Merged in changes from 2.1.x branch. 2007-09-03 20:53:06 +00:00
Noel O'Boyle
49f5d2915c Final changes for Windows release of OBPython 1.2
* windows-vc2005/OBPython/setup.py: bumped version up to 1.2
	* scripts/python/pybelapi.py: updated API doc
2007-06-01 09:05:04 +00:00
Noel O'Boyle
174b5452bf * SWIG interface files: Added template for vectors of strings
* pybel.py: Added informats and outformats, dictionaries corresponding
	to the supported input and output format
2007-05-12 11:45:39 +00:00
Noel O'Boyle
5d1cdec9c3 * pybel.py: Added support for unitcell, and deletion of OBPairData
(need to update the tests and the API docs)
2007-05-10 11:00:13 +00:00
Noel O'Boyle
8270b862df 2007-05-08 Noel O'Boyle <baoilleach@gmail.com>
* scripting interfaces: added a method to cast OBGenericData to
	OBPairData
	* pybel: added dictionary-like support for accessing molecule data,
	and updated the tests and the API documentation
2007-05-08 12:33:05 +00:00
Geoffrey Hutchison
657e845594 Removing auto-generated SWIG files from trunk 2007-04-19 20:47:06 +00:00
Geoffrey Hutchison
1a078891f2 Merged revisions 1900-1914 via svnmerge from
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-1-x

........
  r1900 | ghutchis | 2007-03-24 14:17:59 -0400 (Sat, 24 Mar 2007) | 4 lines
  
    * include/openbabel/atom.h, src/atom.cpp: Change SetVector to
    const parameter.
........
  r1901 | ghutchis | 2007-03-25 09:16:53 -0400 (Sun, 25 Mar 2007) | 2 lines
  
  Fix missing Makefile updates when I removed MMFF94 parameter files.
........
  r1902 | timvdm | 2007-03-25 09:38:42 -0400 (Sun, 25 Mar 2007) | 2 lines
  
  removed unused code from forcefield.cpp
........
  r1903 | ghutchis | 2007-03-25 11:46:16 -0400 (Sun, 25 Mar 2007) | 2 lines
  
  Removed unused mmff94validate (no MMFF94 support, so no reason to keep for 2.1)
........
  r1904 | ghutchis | 2007-03-26 11:37:13 -0400 (Mon, 26 Mar 2007) | 4 lines
  
    * tools/obprop.cpp (main): Fix PR#1688251 with while/for loop on
    CML files. Thanks to Tapani Kinnunen for the report.
........
  r1905 | ghutchis | 2007-03-26 11:41:08 -0400 (Mon, 26 Mar 2007) | 4 lines
  
    * src/formats/mol2format.cpp: Fix problem reported by Noel with
    "USER_CHARGES" appearing instead of Gasteiger.
........
  r1906 | ghutchis | 2007-03-26 11:41:28 -0400 (Mon, 26 Mar 2007) | 3 lines
  
    * src/data.cpp, src/groupcontrib.cpp: Fix doxygen warnings.
........
  r1907 | ghutchis | 2007-03-26 16:58:44 -0400 (Mon, 26 Mar 2007) | 7 lines
  
    * include/openbabel/groupcontrib.h: Documentation fixes.
  
    * NEWS: Minor fixes.
  
    * doc/*.1, doc/*.html: Documentation updates.
........
  r1908 | ghutchis | 2007-03-26 16:59:12 -0400 (Mon, 26 Mar 2007) | 2 lines
  
  Minor doc fix.
........
  r1909 | ghutchis | 2007-03-26 17:00:55 -0400 (Mon, 26 Mar 2007) | 2 lines
  
  Updates for change to OBAtom::SetVector const parameter
........
  r1910 | ghutchis | 2007-03-26 21:59:57 -0400 (Mon, 26 Mar 2007) | 4 lines
  
    * src/obconversion.cpp: Make sure to always return from any
    exception. Otherwise we could crash running code.
........
  r1911 | ghutchis | 2007-03-26 22:00:17 -0400 (Mon, 26 Mar 2007) | 4 lines
  
    * src/formats/mdlformat.cpp: Avoid infinite loop in
    ParseAliasText.
........
  r1912 | ghutchis | 2007-03-26 22:00:35 -0400 (Mon, 26 Mar 2007) | 3 lines
  
    * src/formats/acrformat.cpp: Minor formatting change.
........
  r1913 | ghutchis | 2007-03-26 22:08:00 -0400 (Mon, 26 Mar 2007) | 7 lines
  
    * test/Makefile.am, test/Makefile.in, test/wrapper.sh: Add
    inchiwrite tests to suite.
  
    * test/inchiwrite.cpp, test/inchi.pl: Formatting to integrate into
    Perl "prove" test suite.
........
  r1914 | ghutchis | 2007-03-29 15:31:57 -0400 (Thu, 29 Mar 2007) | 4 lines
  
          * scripts/: Updated interface wrappers, including new Java
          README. (Java is confirmed to work on Mac OS X.)
........
2007-04-13 18:57:13 +00:00
Geoffrey Hutchison
113220be4c Merged revisions 1918-1933 via svnmerge from
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-1-x

........
  r1918 | ghutchis | 2007-03-30 14:25:42 -0400 (Fri, 30 Mar 2007) | 2 lines
  
  Produce a better "clean" before creating a distribution tar
........
  r1919 | ghutchis | 2007-03-30 16:46:51 -0400 (Fri, 30 Mar 2007) | 7 lines
  
    * include/openbabel/residue.h: Hide some residue names (e.g.,
    _1MG) from SWIG wrappers -- such constants are not valid symbols
    in some languages like Ruby.
  
    * scripts/ Update accordingly.
........
  r1920 | ghutchis | 2007-03-30 16:47:12 -0400 (Fri, 30 Mar 2007) | 4 lines
  
    * src/base.cpp: Additional "What's new" documentation for 2.1
    release.
........
  r1921 | ghutchis | 2007-03-30 16:47:34 -0400 (Fri, 30 Mar 2007) | 2 lines
  
  (missed changelog update.)
........
  r1922 | ghutchis | 2007-03-30 17:53:27 -0400 (Fri, 30 Mar 2007) | 2 lines
  
  Updated to use Ruby-style API names via SWIG -autorename
........
  r1923 | ghutchis | 2007-04-02 22:41:53 -0400 (Mon, 02 Apr 2007) | 7 lines
  
    * include/openbabel/residue.h: Undo previous change. Rich Apodaca
    suggested some SWIG-fu instead.
  
    * scripts/ Update accordingly. Includes ruby changes, new README
    and examples.
........
  r1924 | ghutchis | 2007-04-03 22:51:43 -0400 (Tue, 03 Apr 2007) | 2 lines
  
  Updated for 2.1 release of scripting interfaces.
........
  r1925 | ghutchis | 2007-04-04 00:06:50 -0400 (Wed, 04 Apr 2007) | 2 lines
  
  Moved examples to subdir (for cleaner-looking dist) and MANIFEST
........
  r1926 | ghutchis | 2007-04-04 20:58:12 -0400 (Wed, 04 Apr 2007) | 2 lines
  
  Updated for new Doxygen update (and new warnings)
........
  r1927 | timvdm | 2007-04-05 17:41:37 -0400 (Thu, 05 Apr 2007) | 4 lines
  
  - documentation update
  - covert to dative bonds (for psa)
  - psa.txt: fix smiles for 3-rings
........
  r1929 | ghutchis | 2007-04-07 14:43:05 -0400 (Sat, 07 Apr 2007) | 3 lines
  
    * NEWS: Minor fixes for 2.1.0 final release.
........
  r1930 | ghutchis | 2007-04-07 15:07:08 -0400 (Sat, 07 Apr 2007) | 2 lines
  
  Minor fixes. Corresponds to 2.1.0 released source.
........
  r1933 | ghutchis | 2007-04-13 13:44:01 -0400 (Fri, 13 Apr 2007) | 8 lines
  
    * src/formats/inchi/strutil.c: Bug reported on the InChI mailing
    list.
  
    * src/formats/inchiformat.cpp: Bug caught during ChemSpotlight
    testing -- some files don't have chirality information (e.g., 3D
    files but with 0.0 coordinates throughout). Warn and give up.
........
2007-04-13 18:44:10 +00:00
Geoffrey Hutchison
67790a7a4e Updated with recent changes (including list of available formats.) 2007-03-23 18:55:34 +00:00
Geoffrey Hutchison
9517b6b0d6 Updated for recent library changes. 2007-03-15 00:02:18 +00:00
Geoffrey Hutchison
250f0f5b7c Regenerated from recent plugin and force field changes. 2007-02-26 21:51:27 +00:00
Geoffrey Hutchison
bb3c908eed * scripts/*.i, scripts/*: Add access to OBForceField classes and methods. 2007-02-20 15:05:35 +00:00
Geoffrey Hutchison
5ac27fb442 Updates with DataSource => DataOrigin 2007-02-12 16:15:46 +00:00
Noel O'Boyle
a697b20c0a Regenerating bindings for scripting languages 2007-02-08 20:06:59 +00:00
Noel O'Boyle
51d76550c9 Removed %apply of OUTPUT in the script interface files, and regenerated the bindings 2007-02-05 20:19:01 +00:00
Geoffrey Hutchison
a3e96d91d4 * configure.in, configure, Makefiles: Bump version number to
2.1.0b5.
2007-01-14 21:47:03 +00:00
Noel O'Boyle
d18872df68 * scripts/openbabel-[python,java,perl,ruby].i: Added ability to
handle
	the new pluginiter.h, and in particular, its use in
	OBFingerprint.Iter. Also, regenerated all of the dependent 
files.

	* scripts/openbabel-python.i: Removed python code added on 
2006-12-20
	to set BABEL_DATADIR as it actually had no effect.
2007-01-06 18:19:41 +00:00
Geoffrey Hutchison
9d2edcdea1 Regenerate Makefiles to eliminate some build problems. 2007-01-04 13:49:27 +00:00