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

New statistic graphs: Diaper change intervals & feeding intervals #444

Closed

Conversation

myxor
Copy link
Contributor

@myxor myxor commented Apr 16, 2022

New statistic graphs: Diaper change intervals & feeding intervals

grafik

grafik

@coveralls
Copy link

coveralls commented Apr 16, 2022

Coverage Status

Coverage decreased (-0.01%) to 98.333% when pulling 1ceb076 on myxor:statistics_diaper_change_intervals into 81ecff0 on babybuddy:master.

@myxor myxor changed the title New statistic graph: Diaper change intervals New statistic graph: Diaper change intervals & feeding intervals Apr 16, 2022
@myxor myxor changed the title New statistic graph: Diaper change intervals & feeding intervals New statistic graphs: Diaper change intervals & feeding intervals Apr 16, 2022
@myxor myxor marked this pull request as draft May 3, 2022 03:09
@myxor
Copy link
Contributor Author

myxor commented May 18, 2022

Feeding intervals statistics works pretty good but there is an issue with the Diaper change intervals statistics as the entries is "left-aligned". Means the graph starts on the left but the entries do not match the date-value on the x-axis.

Any help to fix this is much appreciated.

@cdubz
Copy link
Member

cdubz commented Sep 8, 2022

@myxor are you still planning to move this PR forward?

@myxor
Copy link
Contributor Author

myxor commented Sep 9, 2022

@cdubz right now i am not planning. I didn't found a solution for issue described in my previous comment yet and therefore i stopped working on this.

Any help would me very much appreciated.

@garyglatfelter
Copy link
Contributor

garyglatfelter commented Oct 18, 2022

@myxor I think I understand the problem. I think it occurs because the interval lists (intervals, intervals_solid, intervals_wet) will always be length of one shorter than the changes list. One approach might be to simply not pass the first item of changes when providing the x values to be plotted.

In reports/graphs/diaperchange_intervals.py:
change
x=list(changes.values_list("time", flat=True))
to be
x=list(changes.values_list("time", flat=True))[1:]

I believe this statement occurs on line 40, line 49, and line 58. Please try that and let me know if that helps.

@barakplasma
Copy link
Contributor

barakplasma commented Sep 17, 2023

newplot (1)
I handled the merge changes and @garyglatfelter 's suggestion in https://github.com/barakplasma/babybuddy/tree/continue-pr-444 as a way of testing my PR #707
newplot

@cdubz
Copy link
Member

cdubz commented Sep 17, 2023

Nice! Looks like this can also be reviewed in Codespaces now. After we merge #707 I'll take a look at this.

@cdubz cdubz marked this pull request as ready for review September 17, 2023 16:30
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 20, 2023
@cdubz
Copy link
Member

cdubz commented Sep 27, 2023

Ok this branch seems out of whack after some bad changes in the last rebase. Not sure how to proceed with it 🤔

@barakplasma
Copy link
Contributor

I can open a new PR with all the git changes sorted out. I still want to provide credit to @myxor for doing the majority of the contribution, but unless they merge in my change / do it themselves... I think it will be a co-author credit?

@cdubz
Copy link
Member

cdubz commented Sep 29, 2023

@barakplasma OK -- and actually you could open it from your branch from @myxor's and they'd still get the commit credits, right?

barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
barakplasma added a commit to barakplasma/babybuddy that referenced this pull request Sep 30, 2023
cdubz pushed a commit that referenced this pull request Sep 30, 2023
@cdubz
Copy link
Member

cdubz commented Sep 30, 2023

Changes moved to #710.

@cdubz cdubz closed this Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants