-
Notifications
You must be signed in to change notification settings - Fork 32
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
refactor: make tierNameList dependent on the state of tierDict #43
refactor: make tierNameList dependent on the state of tierDict #43
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## praatio_v6 #43 +/- ##
=============================================
Coverage ? 75.71%
=============================================
Files ? 21
Lines ? 2623
Branches ? 0
=============================================
Hits ? 1986
Misses ? 637
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This PR addresses concerns raised in: #39
Before this PR, tierNameList and tierDict were independent. An unwary user could create a Tier with an inconsistent tierNameList and tierDict.
After this PR, tierNameList is derived from tierDict. Furthermore, tierNameList has been made read only and tierDict was made protected (_tierDict). _tierDict should be accessed and modified via the provided helper methods tg.addTier, tg.getTier, tg.removeTier, and tg.renameTier.