-
Notifications
You must be signed in to change notification settings - Fork 13
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
Updating parameter subscription does not respect original update_on_expiration #26
Comments
fqqb
added a commit
that referenced
this issue
Nov 8, 2023
Hmm, I cannot reproduce this issue. With following code: from time import sleep
from yamcs.client import YamcsClient
def print_data(data):
for parameter in data.parameters:
print(parameter, parameter.validity_status)
client = YamcsClient("localhost:8090")
processor = client.get_processor("simulator", "realtime")
print("\nReceive callbacks")
subscription = processor.create_parameter_subscription(
["/YSS/SIMULATOR/BatteryVoltage1"],
on_data=print_data,
update_on_expiration=True,
)
sleep(5)
print("Adding extra items to the existing subscription...")
subscription.add(["/YSS/SIMULATOR/BatteryVoltage2"])
# Manually disable TM link
sleep(30) I get this as example output:
As you can see, both BatteryVoltage1 and BatteryVoltage2 receive an EXPIRED update (which occurs soon after disabling the relevant TM link). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce:
Expected result: Parameters X and Y both get updates with validity_status = EXPIRED.
Actual result: X gets updates with validity_status=EXPIRED, but Y does not.
The text was updated successfully, but these errors were encountered: