Skip to content

Commit

Permalink
Merge pull request #46 from Pranavkhade/41-deprecationwarning-delauna…
Browse files Browse the repository at this point in the history
…y-attribute-vertices-is-deprecated-in-favor-of-simplices

Update geometry.py
  • Loading branch information
Pranavkhade authored Jul 17, 2023
2 parents cb02eb5 + 9ad0fb6 commit bdff6a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@


#VERSION CHANGE HERE CHANGES IT IN docs AND setup.py
__version__='1.4.7'
__version__='1.4.8'
4 changes: 2 additions & 2 deletions packman/geometry/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def calculate_alphafitness(alpha, circumradius):
AlphaShape = []
ProteinGraph = Graph()

for a, b, c, d in DelaunayTesssellations.vertices:
for a, b, c, d in DelaunayTesssellations.simplices:
Tetrahydron = [atoms[a],atoms[b],atoms[c],atoms[d]]
Centre, Radius = Circumsphere(Tetrahydron)
#Alpha Test
Expand All @@ -109,4 +109,4 @@ def calculate_alphafitness(alpha, circumradius):
if(get_graph):
return AlphaShape, ProteinGraph
else:
return AlphaShape
return AlphaShape
8 changes: 4 additions & 4 deletions packman/molecule/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def __init__(self,id,AllAtoms,AllResidues,AllChains,AllHetAtoms,AllHetMols):
self.__properties = {}

def __getitem__(self,ChainID):
try:
return self.__AllChains[ChainID]
except KeyError:
logging.warning('Please provide a valid chain ID.')
#try:
return self.__AllChains[ChainID]
#except KeyError:
# logging.warning('Please provide a valid chain ID.')

#Get Functions
def get_id(self):
Expand Down

0 comments on commit bdff6a8

Please sign in to comment.