Improve Python 2 compatability with "future" print_function.
Use python3 version of the print function when running under python2. Also added "from __future__ import division" to a few more module files.
This commit is contained in:
committed by
Mike Beachy
parent
4e7427769e
commit
2079259884
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import string, Source.lib, Source.group
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import pickle,sys,os,math,Source.calculations
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import math, Source.protonate, Source.bonds,copy, sys
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import Source.group, Source.determinants, Source.determinant, Source.ligand, Source.output, Source.coupled_groups, functools
|
||||
|
||||
class Conformation_container:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import math, Source.output, Source.group, Source.lib, itertools
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
class Determinant:
|
||||
"""
|
||||
Determinant class - set up for later structurization
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import math, time
|
||||
|
||||
import Source.iterative, Source.lib, Source.vector_algebra
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import Source.ligand, Source.determinant, Source.ligand_pka_values, math, Source.protonate
|
||||
|
||||
my_protonator = Source.protonate.Protonate(verbose=False)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import math, time
|
||||
import Source.lib as lib
|
||||
from Source.determinant import Determinant
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import string, sys, copy, math, os
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import sys, Source.calculations
|
||||
from Source.vector_algebra import *
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import Source.molecular_container, Source.calculations, Source.calculations, Source.parameters, Source.pdb, Source.lib, os, subprocess, sys
|
||||
|
||||
class ligand_pka_values:
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#
|
||||
#
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
import os, Source.pdb, sys, Source.version, Source.output, Source.conformation_container, Source.group, Source.lib
|
||||
|
||||
class Molecular_container:
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import Source.lib
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import math
|
||||
import Source.lib as lib
|
||||
import sys, os
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import string, sys, copy, Source.lib
|
||||
from Source.atom import Atom
|
||||
from Source.conformation_container import Conformation_container
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from Source.vector_algebra import *
|
||||
import Source.bonds, Source.pdb, Source.atom
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
import math
|
||||
|
||||
class vector:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
import math
|
||||
import Source.lib as lib
|
||||
import sys, os
|
||||
|
||||
Reference in New Issue
Block a user