Skip to content

Commit

Permalink
Merge pull request jsnowacki#2 from prex1030/master_print
Browse files Browse the repository at this point in the history
print problem fixed
  • Loading branch information
prex1030 authored Aug 29, 2022
2 parents c1966ad + bd07250 commit 95b6d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions xppy/parser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def change_ode(ode_file=tmp_ode, new_pars=[]):
Function changes the parameters and initial conditions specified in
new_pars in given ode_file.
'''
print 'Warning! Function is obsolete, use changeOde instead!'
print('Warning! Function is obsolete, use changeOde instead!')
changeOde(new_pars, ode_file)

def changeOde(new_pars, ode_file=tmp_ode):
Expand Down Expand Up @@ -177,7 +177,7 @@ def change_set(set_file, new_pars):
Function changes the parameters and initial conditions specified in
new_pars in given ode_file.
'''
print 'Warning! Function is obsolete, use changeSet instead!'
print('Warning! Function is obsolete, use changeSet instead!')
changeSet(new_pars, set_file)

def changeSet(new_pars, set_file=tmp_set):
Expand Down
4 changes: 2 additions & 2 deletions xppy/parser/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
def set_cmd(xpp_path):
global c_g
c_g = os.path.join(xpp_path, c_g)
print "XPP Path set: %s" % (c_g,)
print("XPP Path set: %s" % (c_g,))
return c_g

def run(ode_file=tmp_ode, set_file=tmp_set, verbose=False):
Expand Down Expand Up @@ -94,7 +94,7 @@ def createTmp(ode_file=None, set_file=None):
if set_file != None:
shutil.copy(set_file, tmp_set)
if ode_file == None and set_file == None:
print 'Warning! No files where created, both ode and set arguments are None.'
print('Warning! No files where created, both ode and set arguments are None.')

def deleteTmp(del_ode=True, del_set=True):
'''
Expand Down

0 comments on commit 95b6d3b

Please sign in to comment.