FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove deprecated _log() probability functions. (Breaking change; bump major version) by syclik · Pull Request #2995 · stan-dev/math · GitHub

/ math Public

Remove deprecated _log() probability functions. (Breaking change; bump major version) - #2995

Merged
SteveBronder merged 6 commits into
5.0-breaking-changesfrom
feature/remove-deprecated-log-functions
Apr 18, 2024
Merged

Remove deprecated _log() probability functions. (Breaking change; bump major version)#2995
SteveBronder merged 6 commits into
5.0-breaking-changesfrom
feature/remove-deprecated-log-functions

Conversation

syclik commented Jan 3, 2024
edited
Loading

Copy link
Copy Markdown
Member

Summary

This PR removes all the deprecated _log() probability functions.

As a consequence, many of the tests needed to be updated.

Tests

I tried to catch all the tests and update them appropiately.

All the log_matches_lpdf and log_matches_lpmf tests are now gone!

Side Effects

This is a breaking change since functions that existed are now removed.

Release notes

Removing deprecated _log distribution functions. Please use _lpdf or _lpmf functions instead.

Checklist

  • Copyright holder: Daniel Lee

    The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
    - Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
    - Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

  • the basic tests are passing

    • unit tests pass (to run, use: ./runTests.py test/unit)
    • header checks pass, (make test-headers)
    • dependencies checks pass, (make test-math-dependencies)
    • docs build, (make doxygen)
    • code passes the built in C++ standards checks (make cpplint)
  • the code is written in idiomatic C++ and changes are documented in the doxygen

  • the new changes are tested

Copy link
Copy Markdown
Collaborator

I'm for this but let's merge it after the current release in two weeks so we have a cycle to see if anything breaks (though I think this should be a fine change)

syclik commented Jan 3, 2024

Copy link
Copy Markdown
Member Author

Absolutely! There's no rush. I just had time and wanted to work on it. I'm relying on the CI machinery.

syclik force-pushed the feature/remove-deprecated-log-functions branch from 5cf7515 to f4fa3e3 Compare January 3, 2024 21:43
syclik force-pushed the feature/remove-deprecated-log-functions branch from f4fa3e3 to 30ec9d7 Compare January 3, 2024 22:14

syclik commented Jan 3, 2024

Copy link
Copy Markdown
Member Author

(It should definitely go after the release is done.)

syclik force-pushed the feature/remove-deprecated-log-functions branch 2 times, most recently from ddd12a3 to 81318e6 Compare January 5, 2024 00:41
syclik force-pushed the feature/remove-deprecated-log-functions branch from fbe1fe6 to 421fb4a Compare January 6, 2024 21:17
SteveBronder mentioned this pull request Mar 1, 2024
SteveBronder changed the base branch from develop to 5.0-breaking-changes April 2, 2024 16:26
SteveBronder changed the base branch from 5.0-breaking-changes to develop April 2, 2024 16:34

Copy link
Copy Markdown
Collaborator

Once the merge conflict is resolved I'm cool approving this and merging it to the 5.0 branch.

Once the 5.0 branch has another PR in it let's open a PR up for it so the tests go off for the 5.0 branch

syclik added the breaking change Requires a breaking change to the Math library label Apr 13, 2024
syclik changed the base branch from develop to 5.0-breaking-changes April 13, 2024 01:17

syclik commented Apr 15, 2024

Copy link
Copy Markdown
Member Author

Just fixed the merge conflict.

The 5.0 branch doesn't have continuous integration in place, unfortunately.

Copy link
Copy Markdown
Collaborator

Lets start merging to it and open a PR for the 5.0 branch

SteveBronder merged commit 5827e5b into 5.0-breaking-changes Apr 18, 2024
SteveBronder mentioned this pull request Apr 18, 2024
7 tasks
WardBrian deleted the feature/remove-deprecated-log-functions branch August 5, 2024 00:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Requires a breaking change to the Math library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL