Skip to content
Snippets Groups Projects
Commit 7e906ceb authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

rename end time property in TSResourceSource

To make it more accurately reflect the meaning, and to not confuse or
associate with the "start" method that start the sub-thread.
parent 5e46fb88
No related branches found
No related tags found
1 merge request!115TSResourceSource fixes
......@@ -760,7 +760,7 @@ class TSResourceSource(_TSSource):
self.__end = self.duration + self.start_time
@property
def end(self):
def end_time(self):
"""The ending time of the resource"""
return self.__end
......@@ -793,9 +793,9 @@ class TSResourceSource(_TSSource):
@property
def end_offset(self):
if self.end is None:
if self.end_time is None:
return float("inf")
return Offset.fromsec(self.end - Offset.offset_ref_t0 / Time.SECONDS)
return Offset.fromsec(self.end_time - Offset.offset_ref_t0 / Time.SECONDS)
@property
def t0(self):
......
......@@ -68,7 +68,7 @@ class FakeLiveSource(TSResourceSource):
super().__post_init__()
def get_data(self):
for stream in self.server.stream(self.srcs, self.start_time, self.end):
for stream in self.server.stream(self.srcs, self.start_time, self.end_time):
for channel, block in stream.items():
pad = self.srcs[channel]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment