8000 Removed vertical slider code by williamjameshandley · Pull Request #65 · handley-lab/anesthetic · GitHub
[go: up one dir, main page]

Skip to content

Removed vertical slider code #65

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
Dec 13, 2019
Merged

Conversation

williamjameshandley
Copy link
Collaborator

Description

The vertical option for slider widgets
is now in the stable version of matplotlib, so we no longer need to replicate
it.

This PR was prompted (via a cron job test) by an update to pydocstyle that
flagged that the now unnecessary code did not have compliant docstrings. I
propose to resolve the issue by removing the code

Checklist:

  • I have performed a self-review of my own code
  • My code is PEP8 compliant (flake8 anesthetic tests)
  • My code contains compliant docstrings (pydocstyle --convention=numpy anesthetic)
  • New and existing unit tests pass locally with my changes (python -m pytest)
  • I have added tests that prove my fix is effective or that my feature works

@codecov
Copy link
codecov bot commented Dec 11, 2019

Codecov Report

Merging #65 into master will decrease coverage by 4.4%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
- Coverage   95.12%   90.71%   -4.41%     
==========================================
  Files          15       15              
  Lines        1293     1293              
==========================================
- Hits         1230     1173      -57     
- Misses         63      120      +57
Impacted Files Coverage Δ
anesthetic/gui/widgets.py 94.31% <100%> (ø) ⬆️
anesthetic/read/montepythonreader.py 40.5% <0%> (-59.5%) ⬇️
anesthetic/read/samplereader.py 75% <0%> (-4.17%) ⬇️
anesthetic/plot.py 89.44% <0%> (-2.8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fb9b06...ce98176. Read the comment docs.

@williamjameshandley
Copy link
Collaborator Author

The tests pass on python 3.6, 3.7 and 3.8. I propose to take this opportunity to drop support for 3.5 and 2.7, to both speed up the test cycle, and to recognise the imminent deprecation.

@williamjameshandley williamjameshandley merged commit 47b3725 into master Dec 13, 2019
@williamjameshandley williamjameshandley deleted the remove_vertical_slider branch December 13, 2019 09:23
@@ -5,8 +5,6 @@ python:
- "3.8"
- "3.7"
- "3.6"
- "3.5"
- "2.7"
Copy link
Collaborator

Choose a reason for hiding this comment

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

These python versions should also be taken out of the setup.py file and the README.rst should be updated accordingly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well spotted.

Copy link
Collaborator

Choose a reason for hiding this comment

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

stumbled over a python35 environment which didn't work with anesthetic anymore...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you remember what it was that didn't work?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The newest matplotlib (v3.1.2) which incorporates the vertical slider has dependency python>=3.6.

Maybe worth incorporating in the requirements? i.e.

matplotlib>=3.1.2

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added as part of #73

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.

2 participants
0