Skip to content

Commit

Permalink
Update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Sep 18, 2023
1 parent 465f9dc commit 3fda722
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions notebooks/Kbmod_Reference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"outputs": [],
"source": [
"im = kb.layered_image(im_path + \"000000.fits\", p)\n",
"print(f\"Loaded a {im.get_width()} by {im.get_height()} image at time {im.get_time()}\")"
"print(f\"Loaded a {im.get_width()} by {im.get_height()} image at time {im.get_obstime()}\")"
]
},
{
Expand Down Expand Up @@ -205,7 +205,7 @@
"print(f\"Width = {im.get_width()}\")\n",
"print(f\"Height = {im.get_height()}\")\n",
"print(f\"Pixels Per Image = {im.get_ppi()}\")\n",
"print(f\"Time = {im.get_time()}\")"
"print(f\"Time = {im.get_obstime()}\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/create_fake_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
],
"source": [
"# Check the object was inserted correctly.\n",
"t0 = ds.stack.get_single_image(0).get_time()\n",
"t0 = ds.stack.get_single_image(0).get_obstime()\n",
"for i in range(ds.stack.img_count()):\n",
" ti = ds.stack.get_single_image(i).get_time()\n",
" ti = ds.stack.get_single_image(i).get_obstime()\n",
" dt = ti - t0\n",
" px = int(trj.x + dt * trj.x_v + 0.5)\n",
" py = int(trj.y + dt * trj.y_v + 0.5)\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/kbmod_visualize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"source": [
"p = kb.psf(1.0)\n",
"im = kb.layered_image(im_path + \"000000.fits\", p)\n",
"print(f\"Loaded a {im.get_width()} by {im.get_height()} image at time {im.get_time()}\")"
"print(f\"Loaded a {im.get_width()} by {im.get_height()} image at time {im.get_obstime()}\")"
]
},
{
Expand Down

0 comments on commit 3fda722

Please sign in to comment.