Skip to content

Commit

Permalink
Energizing (#112)
Browse files Browse the repository at this point in the history
* doc : Energizing program added

* doc : CHANGELOG.md updated

* fix : autopep8

* fix : tests updated

* update : `PROGRAMS.md` updated.

* doc : PROGRAMS.md updated

---------

Co-authored-by: Sadra Sabouri <sabouri.sadra@gmail.com>
  • Loading branch information
sepandhaghighi and sadrasabouri authored Dec 13, 2024
1 parent 648ad09 commit 12a9971
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
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

0 comments on commit 12a9971

Please sign in to comment.