Skip to content

Remove deprecated modules #111

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 43 commits into from
Dec 16, 2022
Merged

Remove deprecated modules #111

merged 43 commits into from
Dec 16, 2022

Conversation

ferrine
Copy link
Member

@ferrine ferrine commented Dec 12, 2022

Motivation for these changes

These modules/functions were not used anymore or moved to a different place long time ago

Checklist

Major / Breaking Changes

  • None

Bugfixes / New features

  • None

Docs / Maintenance

  • Deprecated functionality is removed

@ferrine
Copy link
Member Author

ferrine commented Dec 13, 2022

hits the #119 issue

@ferrine
Copy link
Member Author

ferrine commented Dec 13, 2022

@ricardoV94 I want to make this PR fat, that will get rid of everything we do not want to support, I'll continue opening issues to validate we indeed want to remove some part of the code. Does it resonate with you? Opening small individual PRs is overwhelming

@ricardoV94
Copy link
Member

@ricardoV94 I want to make this PR fat, that will get rid of everything we do not want to support, I'll continue opening issues to validate we indeed want to remove some part of the code. Does it resonate with you? Opening small individual PRs is overwhelming

Sure. I am going to "request changes", because you mention this PR closes #120 but it doesn't yet.

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

It doesn't yet close #120

@ricardoV94 ricardoV94 marked this pull request as draft December 13, 2022 18:25
@ferrine
Copy link
Member Author

ferrine commented Dec 13, 2022

@ricardoV94 I want to make this PR fat, that will get rid of everything we do not want to support, I'll continue opening issues to validate we indeed want to remove some part of the code. Does it resonate with you? Opening small individual PRs is overwhelming

Sure. I am going to "request changes", because you mention this PR closes #120 but it doesn't yet.

I open issues when I discover something new, so there will me more referenced issues

@ferrine ferrine force-pushed the remove-deprecated branch 4 times, most recently from e24e4be to 8cbea97 Compare December 14, 2022 09:22
@twiecki
Copy link
Member

twiecki commented Dec 14, 2022

Are we keeping conv2d?

@ferrine
Copy link
Member Author

ferrine commented Dec 14, 2022

Are we keeping conv2d?

We do, we even continue testing that
https://github.com/pymc-devs/pytensor/pull/111/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R80
The moved file is here pytensor/tensor/conv/abstract_conv.py

@ferrine
Copy link
Member Author

ferrine commented Dec 14, 2022

I've added https://pypi.org/project/pyDeprecate/ to the dependencies so whenever we decide deprecating things or change arguments we can follow semantic versioning with that

@ferrine ferrine force-pushed the remove-deprecated branch 2 times, most recently from f45900b to 55a0f0a Compare December 14, 2022 12:46
@ferrine ferrine marked this pull request as ready for review December 14, 2022 12:46
@ferrine ferrine force-pushed the remove-deprecated branch 5 times, most recently from 451af01 to aee9de7 Compare December 14, 2022 18:13
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.

Wow, so many deletions! That's awesome.

Comment on lines 114 to +117
# html4_writer added to Fix colon & whitespace misalignment
# https://github.com/readthedocs/sphinx_rtd_theme/issues/766#issuecomment-513852197
html4_writer = True
# https://github.com/readthedocs/sphinx_rtd_theme/issues/766#issuecomment-629666319
# html4_writer = False
Copy link
Member

Choose a reason for hiding this comment

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

This whole comment can be removed because the whitespace problem is now taken care of by the pymc-sphinx-theme

@ferrine
Copy link
Member Author

ferrine commented Dec 15, 2022

I've modified mypy script to reflect the updated fileset as suggested in #77 by @michaelosthege

@ricardoV94
Copy link
Member

Now this is some house cleaning alright!

image

@ferrine
Copy link
Member Author

ferrine commented Dec 16, 2022

Who is going to press the nuke button?

@codecov-commenter
Copy link

Codecov Report

Merging #111 (8558e3b) into main (e2ae99e) will increase coverage by 5.53%.
The diff coverage is 84.21%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
+ Coverage   74.45%   79.99%   +5.53%     
==========================================
  Files         179      151      -28     
  Lines       49235    43980    -5255     
  Branches    10426     9310    -1116     
==========================================
- Hits        36660    35181    -1479     
+ Misses      10275     6637    -3638     
+ Partials     2300     2162     -138     
Impacted Files Coverage Δ
pytensor/compile/profiling.py 74.83% <ø> (+0.28%) ⬆️
pytensor/configparser.py 86.36% <ø> (+1.41%) ⬆️
pytensor/gradient.py 76.82% <ø> (-0.20%) ⬇️
pytensor/graph/op.py 86.59% <ø> (ø)
pytensor/graph/rewriting/basic.py 64.50% <ø> (-0.54%) ⬇️
pytensor/graph/rewriting/db.py 85.90% <ø> (-0.48%) ⬇️
pytensor/graph/rewriting/utils.py 95.34% <ø> (+2.49%) ⬆️
pytensor/misc/pkl_utils.py 79.48% <ø> (ø)
pytensor/printing.py 50.52% <ø> (+0.11%) ⬆️
pytensor/scalar/basic.py 79.12% <ø> (+0.01%) ⬆️
... and 25 more

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

Everything else seems good for me, just an error in the docs that were changed

@ferrine ferrine merged commit 2c1d7aa into main Dec 16, 2022
@ferrine
Copy link
Member Author

ferrine commented Dec 16, 2022

nuke

@ferrine ferrine deleted the remove-deprecated branch December 16, 2022 18:55
@twiecki
Copy link
Member

twiecki commented Dec 16, 2022

Epic.

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