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 flipped lower and upper in profile CI #785

Merged
merged 6 commits into from
Oct 1, 2024
Merged

Conversation

palday
Copy link
Member

@palday palday commented Sep 24, 2024

closes #784

  • add entry in NEWS.md
  • after opening this PR, add a reference and run docs/NEWS-update.jl to update the cross-references.
  • I've bumped the version appropriately

@palday palday marked this pull request as ready for review September 24, 2024 02:11
palday and others added 2 commits September 23, 2024 21:14
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.00%. Comparing base (bb96c2d) to head (cbd6d39).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #785   +/-   ##
=======================================
  Coverage   96.99%   97.00%           
=======================================
  Files          34       34           
  Lines        3366     3371    +5     
=======================================
+ Hits         3265     3270    +5     
  Misses        101      101           
Flag Coverage Δ
current 96.94% <100.00%> (+<0.01%) ⬆️
minimum 96.88% <100.00%> (+<0.01%) ⬆️
nightly 96.51% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -102,6 +102,10 @@ function profileβj!(
ζv = getproperty.(tbl, :ζ)
βv = getproperty.(tbl, sym)
val.fwd[sym] = interpolate(βv, ζv, BSplineOrder(4), Natural())
if sym == :β1
@debug "" sym
@debug "" collect(zip(ζv, βv))
Copy link
Member

Choose a reason for hiding this comment

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

Did you intend to leave this in or is it leftover from debugging?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes and yes. 😉 I was going to leave it for now in case I get the urge to do a deeper dive in the near future about what's causing the reversal. But I can also strip out it and add it if I ever get around to that.

Copy link
Member

Choose a reason for hiding this comment

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

I remember seeing an issue quite a while back where having logging macro calls in your code at all came with a performance penalty, even if all uses were in branches that were never executed. I assume it's been fixed in the meantime but don't actually know.

Copy link
Member Author

Choose a reason for hiding this comment

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

Eeek. That's a good reason to drop it though this isn't a particularly hot section of the code.

src/profile/fixefpr.jl Outdated Show resolved Hide resolved
@palday palday requested a review from ararslan October 1, 2024 00:46
Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

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

I have basically 0 familiarity with this part of the code but what you have here looks reasonable at least. I imagine if there were downstream ramifications then other tests would be affected but that seems not to be the case. So... LGTM

@palday palday merged commit 3340bfb into main Oct 1, 2024
12 checks passed
@palday palday deleted the pa/reml_profile_ci_order branch October 1, 2024 01:00
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.

confint(::MixedModelProfile) swaps lower and upper when profiled model is fitted with REML
2 participants