downloaded from propka.ki.ku.dk

This commit is contained in:
Jimmy Charnley Kromann
2012-11-15 17:47:47 +01:00
parent 57be97bf6b
commit d882a2f5d1
25 changed files with 8673 additions and 2 deletions

26
Source/determinant.py Normal file
View File

@@ -0,0 +1,26 @@
class Determinant:
"""
Determinant class - set up for later structurization
"""
def __init__(self, group, value):
"""
Contructer of determinant object - simple, but helps in creating structure!
"""
self.group = group
self.label = group.label
self.value = value
return
def add(self, value):
"""
adding a value to determinant
"""
self.value += value
return
def __str__(self):
return '%s: %8.2f'%(self.label,self.value)