Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

removing name argument from tools#9966

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
fariza wants to merge7 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromfariza:remove-name-tools

Conversation

fariza
Copy link
Member

@farizafariza commentedDec 10, 2017
edited
Loading

PR Summary

Remove name from tools.
This is part of the work on#9941

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@farizafariza mentioned this pull requestDec 10, 2017
6 tasks
@OceanWolf
Copy link
Member

Have you tested this@fariza? As far as I can see the code will fail.

@fariza
Copy link
MemberAuthor

fariza commentedDec 10, 2017 via email

Yes I tested it. Why do you say it will fail?
On Dec 10, 2017 1:47 PM, "OceanWolf" ***@***.***> wrote: Have you tested this@fariza <https://github.com/fariza>? As far as I can see the code will fail. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#9966 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABa86VUBgglw4nw0fsrJe8HwQVZOYn0nks5s_CchgaJpZM4Q8XYn> .

@OceanWolf
Copy link
Member

Ahh sorry, my mistake, I missed something. However you need to change the docstring ofToolContainerBase.add_tool.

@fariza
Copy link
MemberAuthor

Done

@fariza
Copy link
MemberAuthor

@OceanWolf@anntzer can you help merge?

self.data = data


class ToolTriggerEvent(ToolEvent):
"""Event to inform that a tool has been triggered"""
def __init__(self, name, sender, tool, canvasevent=None, data=None):
ToolEvent.__init__(self, name, sender, tool, data)
def __init__(self, name, sender, tool, tool_name, canvasevent=None, data=None):
Copy link
Member

Choose a reason for hiding this comment

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

This line fails PEP8 I think

Copy link
Member

Choose a reason for hiding this comment

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

It does, you just have to look at the Travis build that failed because of this PEP8 error. What's the point in having Travis if we don't use it.

Copy link
Member

Choose a reason for hiding this comment

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

Don't worry! I used Travis. I just wasn't 100% sure I'd remembered the line right, was too lazy to go back and check it, and was 99.9% sure@fariza could manage to figure it out.

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, okay. I over reacted a bit though, I got an email to say that this PR had been approved, and I mistook that to mean it had been merged. I haven't got used to this new review system yet...

Copy link
Member

Choose a reason for hiding this comment

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

No problem! I didn't approve it - I don't really understand it.

@fariza
Copy link
MemberAuthor

Any other comments?

tool :tool_like
The tool to add, see `ToolManager.get_tool`.
tool_name :str
Name of the the tool to add, see `ToolManager.get_tool`.
Copy link
Member

Choose a reason for hiding this comment

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

Double 'the'

@fariza
Copy link
MemberAuthor

@QuLogic docstring corrected

@fariza
Copy link
MemberAuthor

@OceanWolf can you help merge this?

@fariza
Copy link
MemberAuthor

bump

@farizafariza mentioned this pull requestJan 4, 2018
6 tasks
@jklymakjklymak added this to thev3.0 milestoneMar 16, 2018
@jklymakjklymak modified the milestones:v3.0,v3.1Jul 9, 2018
"""
Adds a tool to this container

Parameters
----------
tool : tool_like
The tool to add, see `ToolManager.get_tool`.
tool_name : str
Copy link
Member

Choose a reason for hiding this comment

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

This is an API change, isn't it?

Copy link
Member

Choose a reason for hiding this comment

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

As are the added args below? Not sure if they are a problem, but prob needs an Api change note

@jklymakjklymak modified the milestones:v3.1.0,v3.2.0Feb 25, 2019
@tacaswelltacaswell modified the milestones:v3.2.0,v3.3.0Aug 19, 2019
@QuLogicQuLogic modified the milestones:v3.3.0,v3.4.0Apr 30, 2020
@jklymak
Copy link
Member

@fariza f you have the stomach for a rebase I'll merge this on the merits of@anntzer's review. I don't think@OceanWolf will get a chance to review this...

@jklymakjklymak removed the request for review fromOceanWolfJuly 15, 2020 23:00
@fariza
Copy link
MemberAuthor

@jklymak I will give it a try. If I find it too hard, would you be willing to accept a new one with the same functionality?

@jklymak
Copy link
Member

@fariza Whatever works best for you.

At some point we need to return to these MEPs and see if they are something that is really wanted. MEP 27 is actually a huge deal, and at the very least@anntzer was skeptical. I'm ignorantly skeptical because I don't understand what problems these are trying to solve and whether they are worth the maintenance burden. We are at the beginning of 3.4, and its not foolish to consider 3.5 or 4.0, so if there is still enthusiasm for these ideas it is a reasonable time to agitate.

I'm going to add MEP 27 and 22 to this weeks dev call. You are more than welcome to join if you like. I think a lot of enthusiasm and effort went into these and in my opinion you (and@OceanWolf) deserve some finality on whether this should still go ahead.

@fariza
Copy link
MemberAuthor

@jklymak sure, I'll like to join this weeks dev call

@OceanWolf
Copy link
Member

@fariza Judging from the code changed with this PR I can't imagine a rebase exists as that difficult as the PR mostly touches the new files we created.

@fariza
Copy link
MemberAuthor

@jklymak I did the rebase, wasn't as hard and painful as I imagined (you were right@OceanWolf )
If you want, wait until the call to decide if we merge it or not

@jklymak
Copy link
Member

The docs need to build, and I still think this needs an API note?

@fariza
Copy link
MemberAuthor

@jklymak added the api change notes. (not sure it's the format or wording that we use for that)

@jklymakjklymak marked this pull request as draftAugust 24, 2020 14:19
@QuLogicQuLogic modified the milestones:v3.4.0,v3.5.0Jan 21, 2021
@QuLogicQuLogic modified the milestones:v3.5.0,v3.6.0Aug 18, 2021
@timhoffmtimhoffm modified the milestones:v3.6.0,unassignedApr 30, 2022
@story645story645 modified the milestones:unassigned,needs sortingOct 6, 2022
@github-actions
Copy link

Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.

@github-actionsgithub-actionsbot added the status: inactiveMarked by the “Stale” Github Action labelApr 27, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@jklymakjklymakjklymak left review comments

@OceanWolfOceanWolfOceanWolf left review comments

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Labels
status: inactiveMarked by the “Stale” Github Actionstatus: needs rebasetopic: toolbar
Projects
None yet
Milestone
future releases
Development

Successfully merging this pull request may close these issues.

8 participants
@fariza@OceanWolf@jklymak@QuLogic@anntzer@tacaswell@story645@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp