Skip to content

DM-54580: Add skymap viewer for the plan#40

Open
leannep wants to merge 23 commits intotickets/DM-52852from
tickets/DM-54580
Open

DM-54580: Add skymap viewer for the plan#40
leannep wants to merge 23 commits intotickets/DM-52852from
tickets/DM-54580

Conversation

@leannep
Copy link
Copy Markdown

@leannep leannep commented Apr 8, 2026

First version of a skymap viewer for the observing plan. There may be more updates to come.

@leannep leannep requested a review from womullan April 8, 2026 17:39
Copy link
Copy Markdown
Contributor

@womullan womullan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to see if we can deploy in my branch - dev is set up get the container for my branch already

_REPO_ROOT = pathlib.Path(__file__).parent.parent
sys.path.insert(0, str(_REPO_ROOT / "src"))

LIVE_URL = "https://usdf-rsp.slac.stanford.edu/obsloctap/schedule"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should come from config with a default - so we can pass it in phalanx - see getHelper in db.py for example

# Find matching obsplan entries
done = False
# simple case obs_id matches exposure_id
idmatch = await self.find_by_obs_id(exp.exposure_id, session)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see you adde this in the flake 8 config - i am hoping that will work ..

_COORD_SELECT_WIDTH = 300
_TOGGLE_WIDTH = 155

_GAL_TOGGLE_JS = """
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we consider putting all the Java Scrtpt in a .js file and import that to the generated page ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes -- I'll try a refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants