-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from quillcraftsman/time
Time
- Loading branch information
Showing
17 changed files
with
389 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Time sequence model | ||
""" | ||
import time | ||
from .sequence import Sequence | ||
from .action import Action | ||
|
||
|
||
class TimeSequence(Sequence): | ||
""" | ||
Sequence with time | ||
""" | ||
timestamp_list: list = [] | ||
|
||
@staticmethod | ||
def get_current_timestamp(): | ||
""" | ||
Get current timestamp | ||
""" | ||
return time.time() | ||
|
||
def add(self, new_action: Action): | ||
super().add(new_action) | ||
timestamp = self.get_current_timestamp() | ||
self.timestamp_list.append(timestamp) | ||
|
||
# def is_valid_timestamps(self): | ||
# """ | ||
# Correct timestamp list | ||
# """ | ||
# return len(self.timestamp_list) == len(self.actions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
Package info | ||
""" | ||
name = 'replay-wizard' | ||
version = '0.3.0' | ||
version = '0.4.0' | ||
status = '3 - Alpha' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
Replay package | ||
""" | ||
from .core import replay | ||
from .replay import replay |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.