Skip to content

Commit

Permalink
Update stats_scipy_get_distributions.py (#667)
Browse files Browse the repository at this point in the history
"print x" no longer works in Python 3, in Python 3 it is "print(x)".
I haven't tested the script to work with Python 3, right now my concern is just getting it to parse.
  • Loading branch information
patrick-nicodemus committed Jun 7, 2024
1 parent c5e4d4f commit 600c21a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/stats_scipy_get_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def show_dist(d):
pass
result +="|] \n"
result +=");\n"
print result
print(result)
pass

distributions = [
Expand Down Expand Up @@ -474,10 +474,10 @@ def show_dist(d):
chi2(df=30.),
]

print "module M = Owl_stats"
print "let cdf_approximations = M.["
print("module M = Owl_stats")
print("let cdf_approximations = M.[")
for d in distributions:
show_dist(d)
pass
print "]"
print("]")

0 comments on commit 600c21a

Please sign in to comment.