Skip to content

Commit

Permalink
update to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
kadrlica committed Jun 26, 2024
1 parent 16ad17f commit fa2b7db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions notebooks/kernel_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
],
"source": [
"plummer = kernel.factory(name='EllipticalPlummer',lon=0,lat=0,r_h=0.1,ellipticity=0.5, position_angle=45)\n",
"print plummer"
"print(plummer)"
]
},
{
Expand Down Expand Up @@ -227,9 +227,9 @@
"# `extension` member, though the meaning of `extension` is \n",
"# different for each kernel type\n",
"\n",
"print plummer\n",
"print king\n",
"print exponential"
"print(plummer)\n",
"print(king)\n",
"print(exponential)"
]
},
{
Expand Down Expand Up @@ -317,7 +317,7 @@
"ker.extension = 0.2\n",
"ker.r_h = 0.2 \n",
"\n",
"print ker"
"print(ker)"
]
},
{
Expand All @@ -340,7 +340,7 @@
"try:\n",
" ker.r_h = 40\n",
"except ValueError as e:\n",
" print \"Error:\",e\n"
" print(\"Error:\",e)\n"
]
},
{
Expand Down

0 comments on commit fa2b7db

Please sign in to comment.