Skip to content

I-ALiRT - query modification based on MAG HK data - #923

Merged
laspsandoval merged 3 commits into
IMAP-Science-Operations-Center:devfrom
laspsandoval:db_bug_fix
Oct 9, 2025
Merged

I-ALiRT - query modification based on MAG HK data#923
laspsandoval merged 3 commits into
IMAP-Science-Operations-Center:devfrom
laspsandoval:db_bug_fix

Conversation

@laspsandoval

Copy link
Copy Markdown
Contributor

Change Summary

Overview

MAG added HK data to the database that needs to be formatted in order to return the json result.

Updated Files

  • ialirt_db_query_api.py
    • Update to format to account for MAG HK

Example of MAG HK structure:

mag_hk_status

{ "pri_isvalid" : { "BOOL" : true }, "hkn8v5" : { "N" : "3680" }, "icu_temp" : { "N" : "2336" }, "hk3v3_current" : { "N" : "1784" }, "fib_temp" : { "N" : "2464" }, "hk1v8c_danger" : { "BOOL" : false }, "fob_saturated" : { "BOOL" : false }, "fib_saturated" : { "BOOL" : false }, "hk1v5_danger" : { "BOOL" : false }, "hk1v8_danger" : { "BOOL" : false }, "hk1v8c_warn" : { "BOOL" : false }, "mode" : { "N" : "6" }, "hk2v5c_danger" : { "BOOL" : false }, "hkp8v5_warn" : { "BOOL" : false }, "hk2v5_danger" : { "BOOL" : false }, "hkp8v5_danger" : { "BOOL" : false }, "hkp8v5c_danger" : { "BOOL" : false }, "hkp8v5c_warn" : { "BOOL" : false }, "hk1v5c_warn" : { "BOOL" : false }, "hk3v3" : { "N" : "2880" }, "fob_temp" : { "N" : "2512" }, "fob_range" : { "N" : "2" }, "fib_range" : { "N" : "2" }, "sec_isvalid" : { "BOOL" : true }, "hk1v5_warn" : { "BOOL" : false }, "hk1v5c_danger" : { "BOOL" : false }, "multbit_errs" : { "BOOL" : false }, "hk2v5_warn" : { "BOOL" : false }, "hkn8v5_current" : { "N" : "1368" }, "hk1v8_warn" : { "BOOL" : false }, "hk2v5c_warn" : { "BOOL" : false } }

@lacoak21 lacoak21 left a comment

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.

Looks good! Maybe add a test?

@laspsandoval
laspsandoval merged commit 27f773d into IMAP-Science-Operations-Center:dev Oct 9, 2025
2 checks passed
@laspsandoval
laspsandoval deleted the db_bug_fix branch October 9, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants