Skip to content
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

Unexpectedly variable result #83050

Closed
IanCarr mannequin opened this issue Nov 20, 2019 · 2 comments
Closed

Unexpectedly variable result #83050

IanCarr mannequin opened this issue Nov 20, 2019 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@IanCarr
Copy link
Mannequin

IanCarr mannequin commented Nov 20, 2019

BPO 38869
Nosy @zware
Files
  • bug.py: Example
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-11-20.21:43:28.804>
    created_at = <Date 2019-11-20.21:32:48.824>
    labels = ['type-bug']
    title = 'Unexpectedly variable result'
    updated_at = <Date 2019-11-20.21:43:28.791>
    user = 'https://bugs.python.org/IanCarr'

    bugs.python.org fields:

    activity = <Date 2019-11-20.21:43:28.791>
    actor = 'zach.ware'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-20.21:43:28.804>
    closer = 'zach.ware'
    components = []
    creation = <Date 2019-11-20.21:32:48.824>
    creator = 'IanCarr'
    dependencies = []
    files = ['48727']
    hgrepos = []
    issue_num = 38869
    keywords = []
    message_count = 2.0
    messages = ['357105', '357106']
    nosy_count = 2.0
    nosy_names = ['zach.ware', 'IanCarr']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38869'
    versions = ['Python 2.7']

    @IanCarr
    Copy link
    Mannequin Author

    IanCarr mannequin commented Nov 20, 2019

    I can't understand why the result of changes() in the example file changes. I get:
    [[6.90642211e-310]
    [1.01702662e-316]
    [1.58101007e-322]]
    [[0.]
    [0.]
    [0.]]
    with an Ubuntu 14 system that has had a lot of changes made. I've checked the same happens on pythonanywhere.com so it does not seem to just be my system is broken. I wondered if there was some strange state in cv2 I don't know about, but as commenting out the tvec=np.zeros(3) line removes the behaviour I think there is something strange here. Now I've got it down to a few lines I can find a work around and obviously numpy and opencv are huge packages and it may be in their court, but I think it is worth someone taking a look who knows more than me.
    Yours
    Ian

    @IanCarr IanCarr mannequin added the type-bug An unexpected behavior, bug, or error label Nov 20, 2019
    @zware
    Copy link
    Member

    zware commented Nov 20, 2019

    I don't see anything here to indicate a bug in CPython or the standard library, so I'm closing the issue. I would recommend asking for help with this on python-list@python.org (comp.lang.python) or StackOverflow. If you can reduce it to a bug in either numpy or cv2, you'll need to report it to the correct issue tracker for the project.

    @zware zware closed this as completed Nov 20, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant