Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energizing #112

Merged
merged 6 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]
### Added
- Energizing program
- `PROGRAMS.md`
### Changed
- `README.md` modified
Expand Down
3 changes: 2 additions & 1 deletion PROGRAMS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nafas Breathing Programs

**Last Update: 2024-11-28**
**Last Update: 2024-12-13**

| **Program** | **Description** | **Level** | **Ratios**<br>**(I:R:E:S)** | **Unit**<br>**(Seconds)** | **Cycles** |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------|-------------------|-----------------------|--------------------------|----------------|
Expand All @@ -17,6 +17,7 @@
| Cigarette Replace | Alternative to smoking breaks, encouraging mindful breathing. Suitable for smokers looking to reduce habit triggers. | B<br>M<br>A | 2:1.1:2.2:0.8<br>3:1.1:2.2:0.8<br>4:1.1:2.2:0.8 | 2<br>2<br>2 | 23<br>21<br>19 |
| Decision-Making | Breathing exercise to improve focus before making critical decisions. Useful for developers or managers. | B<br>M<br>A | 5:2:7:0<br>5:2:7:0<br>5:2:7:0 | 1<br>1<br>1 | 6<br>10<br>14 |
| Balancing | Designed for achieving inner balance. Useful for users needing a brief grounding exercise during hectic schedules. | B<br>M<br>A | 6:0:6:0<br>8:1:8:1<br>6:2:6:2 | 1<br>1<br>1 | 6<br>8<br>10 |
| Energizing | Breathing program to recharge energy levels and improve alertness. Ideal for users or professionals needing a quick boost of focus and energy. | B<br>M<br>A | 6:0:4:0<br>6:4:6:1<br>6:6:6:1 | 1<br>1<br>1 | 6<br>8<br>10 |

**Notes**:
- *I: Inhale, R: Retain, E: Exhale, S: Sustain, B: Beginner, M: Medium, A: Advanced*
38 changes: 36 additions & 2 deletions nafas/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
10: "Anti-Appetite",
11: "Cigarette Replace",
12: "Decision-Making",
13: "Balancing"},
13: "Balancing",
14: "Energizing"},
"level": {
1: "Beginner",
2: "Medium",
Expand Down Expand Up @@ -324,6 +325,36 @@
"pre": 3,
"cycle": 10}

ENERGIZING_BEGINNER = {
"ratio": [
6,
0,
4,
0],
"unit": 1,
"pre": 3,
"cycle": 6}

ENERGIZING_MEDIUM = {
"ratio": [
6,
4,
6,
1],
"unit": 1,
"pre": 3,
"cycle": 8}

ENERGIZING_ADVANCED = {
"ratio": [
6,
6,
6,
1],
"unit": 1,
"pre": 3,
"cycle": 10}


PROGRAMS = {"Clear Mind": {"Beginner": CLEAR_MIND_BEGINNER,
"Medium": CLEAR_MIND_MEDIUM,
Expand Down Expand Up @@ -363,7 +394,10 @@
"Advanced": DECISION_MAKING_ADVANCED},
"Balancing": {"Beginner": BALANCING_BEGINNER,
"Medium": BALANCING_MEDIUM,
"Advanced": BALANCING_ADVANCED}
"Advanced": BALANCING_ADVANCED},
"Energizing": {"Beginner": ENERGIZING_BEGINNER,
"Medium": ENERGIZING_MEDIUM,
"Advanced": ENERGIZING_ADVANCED}
}


Expand Down
1 change: 1 addition & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
11- Cigarette Replace (~ 5 minutes)
12- Decision-Making (~ 2 minutes)
13- Balancing (~ 2 minutes)
14- Energizing (~ 2 minutes)
- Please choose a level :
<BLANKLINE>
1- Beginner
Expand Down