Skip to content

Commit

Permalink
Balancing (#104)
Browse files Browse the repository at this point in the history
* feat : balancing programs added

* doc : CHANGELOG.md updated

* doc : README.md references section updated

* fix : autopep8

* fix : tests updated
  • Loading branch information
sepandhaghighi authored Oct 11, 2024
1 parent 1d7e4a5 commit 6e47e32
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 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
- Balancing program
- `--silent` argument
- `clear_screen` function
### Changed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ You can also join our discord server
<blockquote>12- <a href="https://ttsmp3.com/">Free Text-To-Speech and Text-to-MP3 for US English</a> </blockquote>

<blockquote>13- <a href="https://www.yogabasics.com/practice/pranayama/">Pranayama Breathing Techniques and Tips</a> </blockquote>

* Logo designed by [Sara Amiri Fard](https://github.com/sarahfard)

## Show Your Support
Expand Down
38 changes: 36 additions & 2 deletions nafas/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
9: "Anti-Stress",
10: "Anti-Appetite",
11: "Cigarette Replace",
12: "Decision-Making"},
12: "Decision-Making",
13: "Balancing"},
"level": {
1: "Beginner",
2: "Medium",
Expand Down Expand Up @@ -279,6 +280,36 @@
"pre": 3,
"cycle": 14}

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

BALANCING_MEDIUM = {
"ratio": [
8,
1,
8,
1],
"unit": 1,
"pre": 3,
"cycle": 8}

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


PROGRAMS = {"Clear Mind": {"Beginner": CLEAR_MIND_BEGINNER,
"Medium": CLEAR_MIND_MEDIUM,
Expand Down Expand Up @@ -315,7 +346,10 @@
"Advanced": RELAX3_ADVANCED},
"Decision-Making": {"Beginner": DECISION_MAKING_BEGINNER,
"Medium": DECISION_MAKING_MEDIUM,
"Advanced": DECISION_MAKING_ADVANCED}
"Advanced": DECISION_MAKING_ADVANCED},
"Balancing": {"Beginner": BALANCING_BEGINNER,
"Medium": BALANCING_MEDIUM,
"Advanced": BALANCING_ADVANCED}
}


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

0 comments on commit 6e47e32

Please sign in to comment.