Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally use MAUDE to get star data for find_attitude #14

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Aug 20, 2022

Description

Optionally use MAUDE to get star data for find_attitude.

image

Closes #16

Closes https://github.com/sot/ska-projects/issues/51

Interface impacts

Adds a new field and functionality to the kadi find_attitude page.

Testing

Unit tests

  • No unit tests

Functional tests

  • Run in real time during the 2022:231 CTU reset recovery around 3:44pm local Aug 20 with no date input.
  • Test with the date 2022:232:19:00:48.331 (after FFS commanded).
  • Entered a bunch of spaces in the Star data field and confirmed that MAUDE is used.
  • Run about 15 minutes after com and verified that the solution time corresponds to the last available time.

@taldcroft
Copy link
Member Author

Consider using blobs instead of get_msids.

@taldcroft taldcroft force-pushed the find-attitude-use-maude branch from 30066cc to 9f322e6 Compare October 18, 2023 13:08
@taldcroft taldcroft requested a review from javierggt October 18, 2023 13:08
@javierggt
Copy link
Collaborator

The reason why this is still open is that maude requires authentication, and the web server is run by a separate user. That means we would need to decide to add credentials in that user's home directory or handla authentication within the web app. That is why there is PR #16 (WIP).

@taldcroft
Copy link
Member Author

@javierggt - I believe the web server user already has the right credentials.

@taldcroft
Copy link
Member Author

taldcroft commented Oct 19, 2023

And I think the app should use those available credentials instead of requiring the user to enter them. And note the commit message in #16: "Include user auth for MAUDE (not quite working?)".

tbl['YAG'] = [out[f"AOACYAN{ii}"] for ii in range(8)]
tbl['ZAG'] = [out[f"AOACZAN{ii}"] for ii in range(8)]
tbl['MAG_ACA'] = [out[f"AOACMAG{ii}"] for ii in range(8)]
tbl.meta['date_solution'] = CxoTime(date).date
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about this?

tbl.meta['date_solution'] = CxoTime(results[0]['times'][-1]).date

@taldcroft taldcroft merged commit c2ba63e into main Nov 8, 2023
@taldcroft taldcroft deleted the find-attitude-use-maude branch November 8, 2023 19:34
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.

3 participants