Fixes Player Class Implementation

This commit is contained in:
2022-06-01 20:03:58 -03:00
parent 44cb4268ef
commit e54b3e55fa
10 changed files with 94 additions and 145 deletions

View File

@@ -27,7 +27,6 @@ class Dice:
nprocs: int = None
randominit = "first"
combrule = "*"
ncores = 1
temp = 300.0
press = 1.0
@@ -35,8 +34,8 @@ class Dice:
dens = None
ljname = None
outname = None
nmol: List[int] = []
nstep: List[int] = []
nmol: List[int] = None
nstep: List[int] = None
upbuf = 360
def __init__(self, infile: TextIO, outfile: TextIO) -> None:
@@ -46,7 +45,7 @@ class Dice:
@NotNull(requiredArgs=["ncores", "nmol", "dens", "nstep", "ljname", "outname"])
def updateKeywords(self, **data):
self.__dict__.update(data)
self.__dict__.update(**data)
def __new_density(self, cycle: int, proc: int) -> float:

View File

@@ -17,21 +17,18 @@ from diceplayer.DPpack.Utils.Validations import NotNull
class Gaussian:
qmprog = "g09"
mem = None
keywords = None
chgmult = [0, 1]
gmiddle = None # In each case, if a filename is given, its content will be
gbottom = None # inserted in the gaussian input
pop = "chelpg"
level = None
def __init__(self) -> None:
pass
@NotNull(requiredArgs=["level"])
@NotNull(requiredArgs=["qmprog","level"])
def updateKeywords(self, **data):
self.__dict__.update(data)
self.__dict__.update(**data)
def run_formchk(self, cycle: int, fh: TextIO):