Commit Graph

121 Commits

Author SHA1 Message Date
S. Joshua Swamidass
3cf839f34e Rewrote setup.py so that it can independentley install python bindings. Symbolic links to swig files added to enable this. 2014-01-05 08:51:47 -10:00
Patrick Fuller
e0b2dc2c67 Changed url of 3d molecule viewer 2013-12-24 13:03:37 -05:00
Patrick Fuller
d869efe9ac Reduced footprint of 3D ipython rendering 2013-12-23 16:24:52 -05:00
Patrick Fuller
d02d57f3f9 2D/3D toggle now accessible by pybel.ipython_3d boolean 2013-12-09 09:38:12 -06:00
Patrick Fuller
995326303f pybel.py made PEP8 compliant 2013-12-08 20:49:10 -06:00
Patrick Fuller
d4826d10c3 Rough implementation of Javascript IPython rendering 2013-09-29 17:48:43 -05:00
Maciek Wójcikowski
9c5bad432e Fix documentation of residues in pybel 2013-03-20 13:33:34 +01:00
Geoff Hutchison
e4804d9c26 Merge pull request #1 from mwojcikowski/master
Fix missing LPMD file in src/format
2013-03-15 11:10:28 -07:00
Maciek Wójcikowski
7c8a9b6327 Pybel residue support 2013-03-06 13:26:38 +01:00
Björn Grüning
006a9351ad add ConvertDativeBonds to pybel 2013-03-05 23:37:00 +01:00
Noel O'Boyle
df59c4a630 Drat! Trival fix to re-enable Molecule.draw() after recent changes to PNG2. 2012-10-29 15:26:47 +00:00
Reinis Danne
7366f780bb setup.py: There are no separate pybel_pyX.py files anymore 2012-10-15 12:18:03 +00:00
Noel O'Boyle
c19f75c45f scripts/python/testpybel.py: Minor fix to enable failing test to pass. Failures due to the new MOL Chiral Flag data that I stored a while ago. 2012-10-01 20:40:36 +00:00
Geoffrey Hutchison
c08b71defc Add test Python script from Andrew Dalke. 2012-07-26 19:12:40 +00:00
Noel O'Boyle
2c9aa50fef pybel.py: Fix for previous commit to remove tabs. 2012-06-26 13:49:31 +00:00
Noel O'Boyle
0e6c1f59ee Simplify installation of Python bindings: Now there is only one version of pybel.py for Py 2.x and Py 3.x. It also includes support for Jython and IronPython. 2012-06-26 13:43:25 +00:00
Noel O'Boyle
2b13e591d6 testpybel.py: Update for corrected unit cell parameters. I should have checked this in a long time ago... 2012-05-17 12:58:21 +00:00
Noel O'Boyle
00b9359103 Update draw method pybel to remove explicit Hs before calling gen2d. 2011-06-27 08:36:52 +00:00
Noel O'Boyle
57fa747db2 pybel.py: Update pybel versions to draw using the PNG2 format. 2011-06-05 18:40:28 +00:00
Noel O'Boyle
aa2e4eace3 Pybel Python files: Updates on the drawing code using Chris's "P" option for SVG. 2011-05-26 19:34:09 +00:00
Noel O'Boyle
fa4c9d71f0 Update the draw method of Pybel so that it uses our own depiction and 2D layout. I've removed the dependency on OASA (but added optional dependencies on cairo and pyrsvg). Once we have direct depiction on PNG I'll be able to drop the pyrsvg one. 2011-05-16 20:14:36 +00:00
Noel O'Boyle
8972f41fe6 openbabel-csharp.i: Fix Downcast method (was already fixed in 2.2.x but was not merged to trunk)
pybel.py: Updated to synch with Cinfony.
2011-04-15 07:57:42 +00:00
Geoffrey Hutchison
0ffd9199f1 Patches from Fedora packaging. 2010-12-15 21:45:57 +00:00
Noel O'Boyle
7a83696add Update docs and Python binding version. 2010-10-26 11:37:36 +00:00
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