Skip to content

Commit 5aac1d0

Browse files
committed
fix minor issues from #72
1 parent b83f269 commit 5aac1d0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pysces/core2/PyscesCore2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def setArg(self, var, value=None):
374374
self.args.append(var)
375375

376376
def addFormula(self, formula):
377-
print('PC2 377:', formula)
377+
# print('PC2 377:', formula)
378378
formula = formula.replace('self.', '')
379379
self.formula = formula
380380
InfixParser.setNameStr('self.', '')
@@ -1162,7 +1162,6 @@ def addSpecies(self):
11621162
)
11631163

11641164
def addOneFunction(self, name, args, formula):
1165-
print(name, formula)
11661165
func = Function(name)
11671166
# TODO: make better
11681167
setattr(func, '_TIME_', self._TIME_)

pysces/core2/PyscesCore2Interfaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def setSpecies(self):
840840
s.setBoundaryCondition(False)
841841
if spe() is None:
842842
print(
843-
'Warning, species {} has not been initialised setting to 1e-3'.format(spe.getName(), self.UNINIT_DEFAULT)
843+
'Warning, species {} has not been initialised setting to {}'.format(spe.getName(), self.UNINIT_DEFAULT)
844844
)
845845

846846
if spe.name in self.core.__InitDict__ and self.core.__InitDict__[spe.name] is None:
@@ -868,7 +868,7 @@ def setParameters(self):
868868
try:
869869
if par() is None:
870870
print(
871-
'INFO: parameter \"{}\" not been defined setting to 1e-3'.format(par.getName(), self.UNINIT_DEFAULT)
871+
'INFO: parameter \"{}\" not been defined setting to {}'.format(par.getName(), self.UNINIT_DEFAULT)
872872
)
873873
if par.name in self.core.__InitDict__ and self.core.__InitDict__[par.name] is None:
874874
self.core.__InitDict__[par.name] = self.UNINIT_DEFAULT

0 commit comments

Comments
 (0)