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

Fix label and indentation processors #1379

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

edelarua
Copy link
Contributor

@edelarua edelarua commented Jan 22, 2025

Pull Request

Fixes #1378 #1363

@edelarua edelarua added the sme label Jan 22, 2025
Copy link
Contributor

github-actions bot commented Jan 22, 2025

Unit Tests Summary

    1 files     84 suites   1m 22s ⏱️
  876 tests   867 ✅   9 💤 0 ❌
1 881 runs  1 184 ✅ 697 💤 0 ❌

Results for commit a2f3a8b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 22, 2025

Unit Test Performance Difference

Test Suite $Status$ Time on main $±Time$ $±Tests$ $±Skipped$ $±Failures$ $±Errors$
analyze_vars_in_cols 💔 $2.52$ $+3.08$ $+17$ $-7$ $0$ $0$
count_occurrences 💔 $0.75$ $+1.57$ $+10$ $-8$ $0$ $0$
summarize_num_patients 💔 $1.20$ $+1.08$ $+18$ $-16$ $0$ $0$
Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
analyze_vars_in_cols 💔 $0.50$ $+1.45$ summarize_works_with_nested_analyze

Results for commit 3765fef

♻️ This comment has been updated with latest results.

@edelarua edelarua requested a review from Melkiades January 22, 2025 02:37
if (is.null(row_nms)) { # One row per statistic
common_names <- intersect(names(out), names(indents_in))
out[common_names] <- indents_in[common_names]
} else if (!is.null(row_nms)) { # One row per combination of variable level and statistic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to merge behavior with .adjust_stats_desc_by_in_def (we can definitely pick a better name ahah)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something to do for formats and indentation. Are the count cases that provide counts for each level for each stats (I think keeping this structure clear with the stat name on top is the best)

@edelarua edelarua marked this pull request as draft January 22, 2025 23:34

out
out %>% unlist()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we want the other .unlist_keep*?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants