Comments (6)
I haven't looked at that code in a while, but I think it's because if there's no entry, we assume that means 0
.
So one of the default values (either the score or the entry) would have to change, so it'd be inconsistent in any case.
from uhabits.
Hm yeah, don't know if it's possible to change one of the two for this specific type of habit only - otherwise it is not so useful, if it starts from 100% (and there's no easy way of translating it into a at-least version) only workaround, flatten it to a yes/no habit
from uhabits.
@hiqua maybe, in case of at most targets, the data for a day has to be <=target for it to be considered a yes internally and progress is made, but when data is higher than at most target, progress should suffer(which is not happening). I tested with sample habit of target at most 10, and entered 50 for each day, the progress is still around 75%. Should be 0%.
Maybe starting at most measurable habits with default of no data(instead of 0)would help. It would work for at least habits too. Calculate progress only based on data entered, whether 0 or non-zero.
from uhabits.
@jayb-g you're talking specifically about the score right? Saying that the score computation should ideally ignore all entries up to the first one entered?
from uhabits.
@hiqua yes, scores in case of Measurable habits. I believe ultimately when it comes to showing progress percentage (circle), its basically a yes or no average same as a Yes or No habit type.
Score computation should ideally ignore all the missing data(instead of defaulting to 0). I know this would not reflect accurate tracking due to missing data but its the best(it would be accurate for the days data is provided for) it can do if data is not provided for some days by user. Alternatively maybe count missing data as skip days by default ? I realized skip days would increase the score.
from uhabits.
Thank you for the bug report, @dovahgab, but this is working as intended.
from uhabits.
Related Issues (20)
- Bug: Days are listed in reverse order by default. HOT 2
- Reminders showing for archived habits HOT 1
- Notifications no longer able to make sticky HOT 1
- Stacked widget(s) unavailable in android 14 HOT 3
- History not showing when change to year view
- Numerical input HOT 2
- DateUtilsTest. getWeekdaysInMonth[jvm] test failing
- "File not recognized" while trying to import exported copy HOT 1
- 可量化中的目标类型:至多。无法正常添加 HOT 1
- Malfunction with the toggle in settings "use pure black in dark theme" HOT 1
- Bug when I filter 2 times on the same filter HOT 1
- Create a Wear OS version for the app HOT 1
- Score calculation for "at most" measurable habits is incorrect
- Gradle sync error when building the project for the first time
- "1 times per week"/"1 times in 7 days" defaulting to "Every 7 days"
- Google Play version is higher than on GitHub/F-droid causing endless update notifications
- Gui HOT 1
- Import button fails, probably missing files permission HOT 1
- Wrong Monthly Score Chart (probably)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uhabits.