-
Notifications
You must be signed in to change notification settings - Fork 22
I-ALiRT - Swapi Rolling Average #2608
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
base: dev
Are you sure you want to change the base?
I-ALiRT - Swapi Rolling Average #2608
Conversation
|
Is there any easy way we could test how it behaves in the presence of data gaps in the actual packets before it goes live? |
This should test a scenario in which there is a gap: But I added a packet scenario just in case you still needed to see it (see test_process_spacecraft_packet). Just know that the algorithm waits 1 minute to begin the rolling average. However, if there is a gap, then the algorithm is ok with that and just uses what is available within the past minute. So, for example I put in: "iois_1_packets_2025_344_05_57_56" There is a 1 minute gap between these packets. swapi_met_list So in the second packet a single value will be used to find the geometric mean initially met_arr[index_0:][valid] And then more values are added. |
hafarooki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor stuff now
|
|
||
| avg_swapi_met, avg_density, avg_speed, avg_temperature = geometric_mean( | ||
| swapi_met_list[4::], | ||
| pseudo_speed_list[4::], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pseudo proton speed
|
|
||
| swapi_met_list = [12, 24, 36, 48, 60] | ||
|
|
||
| pseudo_speed_list = [400, 420, 440, 460, np.nan] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pseudo proton speed
| ): | ||
| ( | ||
| avg_swapi_met, | ||
| avg_proton_density, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inconsistent proton/pseudo naming here
| pseudo_proton_temperature_list.append(pseudo_temperature) | ||
| swapi_met_list.append(mid_measurement) | ||
|
|
||
| # Begin averaging after 1 minute has passed (5 sweeps). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably worth making this comment a bit more descriptive
Change Summary
Overview
The SWAPI team would like to implement a geometric rolling mean starting after 1 minute has passed (first sweep) and using the previous sweep.
A reminder that each sweep is 12 seconds.
Updated Files
Testing
test_process_swapi.py