-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_visualize.py
executable file
·82 lines (74 loc) · 2.62 KB
/
mod_visualize.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import random
import datetime
from time import sleep
from list_feelings import *
from list_yes_or_no import *
def visualize():
# Write timestamp of program launch
vis_date = open("timestamps/visualization_date.txt", "a")
vis_date.write(str(datetime.datetime.now()) + "\n")
# set visualization duration
duration_in_seconds = 60
# Introduction text
sleep(0.1)
print("Okay, let's start with visualizing some feelings.")
sleep(0.1)
print("I will select a feeling at random,")
sleep(0.1)
print("then you hold how it feels in your body")
sleep(0.1)
print(
f"I will let you know when the time is up after {duration_in_seconds} seconds"
)
sleep(0.1)
print("Then we can move to the next one.")
sleep(0.1)
print(
"Would you like to practice with only positive feelings, or include negitive ones as well?"
)
sleep(0.1)
print("Reply 'p' for positive only or 'b' for both.")
pick = input()
print("Sounds good. Let me know when you are ready")
input()
sleep(0.1)
print("Okay, let's begin, your first feeling is...")
sleep(1)
# set visualization duration
duration_in_seconds = 60
i = 0
shuffled_feelings = ""
if pick == "p":
shuffled_feelings = feelings_positive
elif pick == "b":
shuffled_feelings = feelings_positive + feelings_negative
random.shuffle(shuffled_feelings)
while i < 30:
print(str(shuffled_feelings[i].capitalize()))
sleep(duration_in_seconds)
print("Okay, time is up.")
if i == 4:
print("That makes five in a row, great work!")
if i == 9:
print(
"That makes ten in a row, god damn! Maybe think of giving yourself a break?"
)
sleep(0.5)
# TO DO - Was there any specific imagery that helped you visualize this feeling? (record it to txt for use later)
print("Ready for another one?")
ready = input()
if ready in replies_yes:
sleep(0.7)
print("Great, here is the next one...")
sleep(1)
i += 1
else:
i = 30
print("Congrats, that was some solid visualization practice!")
# TO DO:
# Add followup questions after the visualization period, including:
# 1 to 5: how intense was the cultivated emotion?
# if previous response was 4 or 5: what imagery helped facilite the emotion?
# Similar to inventory filesystem, create folder with date for each visualization session.
# save all feelings into txt titled 1 through 5.
# Save effective imagery (with entry dates) to feeling txt files in the parent dir.