AmmosReader 0.314 documentation
"""I store the content of an R&S Ammos file in a more accessible way."""
[docs]class AmmosContainer():
def __init__(self, name, frames):
self.name = name
self.global_frames = frames
self.tags = []
[docs] def frequencies(self):
return set(list(filter(lambda frame: frame.global_frame_body.data_header.frequency, self.global_frames)))
def __str__(self):
start_time = self.global_frames[0].global_frame_body.data_header.timestamp
end_time = self.global_frames[-1].global_frame_body.data_header.timestamp
frq = str(self.global_frames[0].global_frame_body.data_header.frequency)
return ("Start time: " + str(start_time) +
"\nEnd time : " + str(end_time) + "\nFrequencies: " + frq)