Skip to content

Commit

Permalink
[tda] Critical Experiences - switch to 24 hour cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
realkosty committed Jan 24, 2025
1 parent 76731e7 commit 67c2912
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tda/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,12 @@ def time_segment():
# return 3 + now.minute // 30

# change every hour, except for segment #4 that's 2 hours long (cycle = 6 hours)
mod5 = now.hour % 6
return 4 if mod5 == 5 else mod5
#mod5 = now.hour % 6
#return 4 if mod5 == 5 else mod5

# change every 4 hours, except for segment #4 that's 8 hours long (cycle = 24 hours)
d4 = now.hour // 4
return 4 if d4 == 5 else d4

# array length must match number of possible time segments
probabilities = { # segments 0 1 2 3 4
Expand Down

0 comments on commit 67c2912

Please sign in to comment.