Skip to content

Commit 61844e8

Browse files
authored
Merge pull request #80 from subindev-d/patch-1
Updated the maxtime for running in windows
2 parents 392f708 + b3dd5a9 commit 61844e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

streaming_data_types/action_response_answ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def deserialise_answ(buffer: Union[bytearray, bytes]):
6464
check_schema_identifier(buffer, FILE_IDENTIFIER)
6565
answ_message = ActionResponse.ActionResponse.GetRootAsActionResponse(buffer, 0)
6666
max_time = datetime(
67-
year=9000, month=1, day=1, hour=0, minute=0, second=0
67+
year=3001, month=1, day=1, hour=0, minute=0, second=0
6868
).timestamp()
6969
used_timestamp = answ_message.StopTime() / 1000
7070
if used_timestamp > max_time:

streaming_data_types/area_detector_ADAr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def deserialise_ADAr(buffer: Union[bytearray, bytes]) -> ADArray:
166166
ad_array = ADArray.ADArray.GetRootAsADArray(buffer, 0)
167167
unique_id = ad_array.Id()
168168
max_time = datetime(
169-
year=9000, month=1, day=1, hour=0, minute=0, second=0
169+
year=3001, month=1, day=1, hour=0, minute=0, second=0
170170
).timestamp()
171171
used_timestamp = ad_array.Timestamp() / 1e9
172172
if used_timestamp > max_time:

streaming_data_types/sample_environment_senv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def deserialise_senv(buffer: Union[bytearray, bytes]) -> Response:
104104
SE_data = SampleEnvironmentData.GetRootAsSampleEnvironmentData(buffer, 0)
105105

106106
max_time = datetime(
107-
year=9000, month=1, day=1, hour=0, minute=0, second=0
107+
year=3001, month=1, day=1, hour=0, minute=0, second=0
108108
).timestamp()
109109
used_timestamp = SE_data.PacketTimestamp() / 1e9
110110
if used_timestamp > max_time:

0 commit comments

Comments
 (0)