Skip to content

Commit

Permalink
Move preserve pan
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 19, 2024
1 parent 4f3e6bb commit a05a9b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lvmopstools/ds9.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ def ds9_display_frames(
if cam in files_dict:
ds9.set(f"frame {nframe}")

ds9.set("preserve pan yes")
ds9.set("preserve regions yes")
ds9.set("preserve scale yes")

has_file = ds9.get("file") != ""
zoom = ds9.get("zoom")

if has_file:
ds9.set("preserve pan yes")
ds9.set("preserve regions yes")
ds9.set("preserve scale yes")

file_ = files_dict[cam]
if file_ is None:
continue
Expand Down

0 comments on commit a05a9b5

Please sign in to comment.