Backported PROPKA code base to Python2.

Now this same code can be run with either Python2.7 or Python3.
This commit is contained in:
Matvey Adzhigirey
2012-12-04 14:52:52 -08:00
committed by Mike Beachy
parent 2aaf2d3a48
commit cfab0bbe69
8 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
from __future__ import division
import pickle,sys,os,math,Source.calculations
@@ -350,9 +351,9 @@ class bondmaker:
#print('z range: [%6.2f;%6.2f] %6.2f'%(zmin,zmax,zlen))
# how many boxes do we need in each dimension?
self.no_box_x = max(1, math.ceil(xlen/box_size))
self.no_box_y = max(1, math.ceil(ylen/box_size))
self.no_box_z = max(1, math.ceil(zlen/box_size))
self.no_box_x = max(1, int(math.ceil(xlen/box_size)))
self.no_box_y = max(1, int(math.ceil(ylen/box_size)))
self.no_box_z = max(1, int(math.ceil(zlen/box_size)))
#print('No. box x: %6.2f'%self.no_box_x)
#print('No. box y: %6.2f'%self.no_box_y)

View File

@@ -1,5 +1,5 @@
from __future__ import division
import math, Source.protonate, Source.bonds,copy, sys

View File

@@ -2,6 +2,7 @@
# Container for molecular conformations
#
from __future__ import division
import Source.group, Source.determinants, Source.determinant, Source.ligand, Source.output, Source.coupled_groups, functools
class Conformation_container:

View File

@@ -1,4 +1,5 @@
from __future__ import division
import math, Source.output, Source.group, Source.lib, itertools

View File

@@ -2,6 +2,7 @@
# Class for storing groups important for propka calculations
#
from __future__ import division
import Source.ligand, Source.determinant, Source.ligand_pka_values, math, Source.protonate
my_protonator = Source.protonate.Protonate(verbose=False)

View File

@@ -3,7 +3,7 @@
# Molecular container for storing all contents of pdb files
#
#
from __future__ import division
import os, Source.pdb, sys, Source.version, Source.output, Source.conformation_container, Source.group, Source.lib
class Molecular_container:

View File

@@ -1,5 +1,6 @@
#!/usr/bin/python
from __future__ import division
from Source.vector_algebra import *
import Source.bonds, Source.pdb, Source.atom