Skip to content

raise not implemented error for non refactored distributions and functions #5799

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

Merged
merged 2 commits into from
May 31, 2022

Conversation

ferrine
Copy link
Member

@ferrine ferrine commented May 24, 2022

Closes #5676

  • The PR raises a NotImplemented error on attempt to create not yet refactored timeseries distributions or sample_posterior_predctive_w
  • Also refactored tests to catch the correct error is passed to the user side

@ricardoV94
Copy link
Member

@ferrine MvStudentTRandomWalk and MvGaussianRandomWalk are also not refactored yet

@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #5799 (8962d6f) into main (6b22ed5) will decrease coverage by 0.41%.
The diff coverage is 80.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5799      +/-   ##
==========================================
- Coverage   89.40%   88.98%   -0.42%     
==========================================
  Files          74       74              
  Lines       13772    13793      +21     
==========================================
- Hits        12313    12274      -39     
- Misses       1459     1519      +60     
Impacted Files Coverage Δ
pymc/distributions/timeseries.py 77.63% <80.00%> (+0.16%) ⬆️
pymc/sampling.py 82.52% <100.00%> (-6.19%) ⬇️

@ricardoV94 ricardoV94 added this to the v4.0.0 milestone May 24, 2022
Copy link
Member

@michaelosthege michaelosthege left a comment

Choose a reason for hiding this comment

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

I would phrase the errors differently, but other than that I would say this PR only needs suggested changes to be applied and then we're good to go.

@ferrine
Copy link
Member Author

ferrine commented May 26, 2022

The things left so far as I read are the MvStudentTRandomWalk and MvGaussianRandomWalk

@ricardoV94 ricardoV94 force-pushed the error-not-refactored-time-series branch from ded8beb to 400e205 Compare May 31, 2022 14:03
@ricardoV94 ricardoV94 force-pushed the error-not-refactored-time-series branch from 400e205 to fd31103 Compare May 31, 2022 14:07
@ricardoV94 ricardoV94 changed the title raise not implemented error for non refactored distributions raise not implemented error for non refactored distributions and functions May 31, 2022
@ricardoV94 ricardoV94 force-pushed the error-not-refactored-time-series branch from d81e9cb to 8962d6f Compare May 31, 2022 14:16
@twiecki twiecki merged commit 6027be1 into main May 31, 2022
@twiecki twiecki deleted the error-not-refactored-time-series branch May 31, 2022 16:26
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.

Warn or raise explicitly for known broken features in V4
4 participants