Skip to content

Commit

Permalink
Merge pull request #80 from subindev-d/patch-1
Browse files Browse the repository at this point in the history
Updated the maxtime for running in windows
  • Loading branch information
danesss authored Apr 24, 2023
2 parents 392f708 + b3dd5a9 commit 61844e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion streaming_data_types/action_response_answ.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def deserialise_answ(buffer: Union[bytearray, bytes]):
check_schema_identifier(buffer, FILE_IDENTIFIER)
answ_message = ActionResponse.ActionResponse.GetRootAsActionResponse(buffer, 0)
max_time = datetime(
year=9000, month=1, day=1, hour=0, minute=0, second=0
year=3001, month=1, day=1, hour=0, minute=0, second=0
).timestamp()
used_timestamp = answ_message.StopTime() / 1000
if used_timestamp > max_time:
Expand Down
2 changes: 1 addition & 1 deletion streaming_data_types/area_detector_ADAr.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def deserialise_ADAr(buffer: Union[bytearray, bytes]) -> ADArray:
ad_array = ADArray.ADArray.GetRootAsADArray(buffer, 0)
unique_id = ad_array.Id()
max_time = datetime(
year=9000, month=1, day=1, hour=0, minute=0, second=0
year=3001, month=1, day=1, hour=0, minute=0, second=0
).timestamp()
used_timestamp = ad_array.Timestamp() / 1e9
if used_timestamp > max_time:
Expand Down
2 changes: 1 addition & 1 deletion streaming_data_types/sample_environment_senv.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def deserialise_senv(buffer: Union[bytearray, bytes]) -> Response:
SE_data = SampleEnvironmentData.GetRootAsSampleEnvironmentData(buffer, 0)

max_time = datetime(
year=9000, month=1, day=1, hour=0, minute=0, second=0
year=3001, month=1, day=1, hour=0, minute=0, second=0
).timestamp()
used_timestamp = SE_data.PacketTimestamp() / 1e9
if used_timestamp > max_time:
Expand Down

0 comments on commit 61844e8

Please sign in to comment.