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

cannot set custom smearing without data (Trac #714) #837

Closed
pkienzle opened this issue Mar 30, 2019 · 2 comments
Closed

cannot set custom smearing without data (Trac #714) #837

pkienzle opened this issue Mar 30, 2019 · 2 comments
Assignees
Labels
Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour
Milestone

Comments

@pkienzle
Copy link
Contributor

pkienzle commented Mar 30, 2019

To simulate a dataset before measurement, it would be useful to be able to set custom pinhole smear or custom slit smear even when there is no data available. When I try this I get

Traceback (most recent call last):
  File "/Users/pkienzle/Source/sasview-new/src/sas/sascalc/data_util/calcthread.py", line 268, in _run
    self.compute(*args, **kwargs)
ValueError: operands could not be broadcast together with shapes (0,) (49,) 

Migrated from http://trac.sasview.org/ticket/714

{
    "status": "closed",
    "changetime": "2016-10-07T14:48:27",
    "_ts": "2016-10-07 14:48:27.021691+00:00",
    "description": "To simulate a dataset before measurement, it would be useful to be able to set custom pinhole smear or custom slit smear even when there is no data available.  When I try this I get\n{{{\nTraceback (most recent call last):\n  File \"/Users/pkienzle/Source/sasview-new/src/sas/sascalc/data_util/calcthread.py\", line 268, in _run\n    self.compute(*args, **kwargs)\nValueError: operands could not be broadcast together with shapes (0,) (49,) \n}}}",
    "reporter": "pkienzle",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2016-10-06T16:00:12",
    "component": "SasView",
    "summary": "cannot set custom smearing without data",
    "priority": "blocker",
    "keywords": "",
    "milestone": "SasView 4.1.0",
    "owner": "mathieu",
    "type": "defect"
}
@pkienzle pkienzle added this to the SasView 4.1.0 milestone Mar 30, 2019
@pkienzle pkienzle added Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour Incomplete Migration and removed Incomplete Migration labels Mar 30, 2019
@butlerpd
Copy link
Member

Trac update at 2016/10/07 01:18:03:

  • butler commented:

verified on my windows -- The log file has a bit longer of a traceback in some cases. Seems to have been introduced by Mathieu Doucet when adding the rescale functionality.

2016-10-06 21:12:22,845 ERROR Traceback (most recent call last):
  File "C:\Users\Paul\git\sasview_new\src\sas\sascalc\data_util\calcthread.py", line 268, in _run
    self.compute(*args, **kwargs)
  File "C:\Users\Paul\git\sasview_new\src\sas\sasgui\perspectives\fitting\model_thread.py", line 187, in compute
    / output[first_bin:last_bin+1]
ValueError: operands could not be broadcast together with shapes (0) (50) 
  • butler changed milestone from "SasView Next Release +1" to "SasView 4.1.0"
  • butler changed owner from "" to "mathieu"
  • butler changed priority from "minor" to "blocker"
  • butler changed status from "new" to "assigned"

@mdoucet
Copy link
Contributor

mdoucet commented Mar 30, 2019

Trac update at 2016/10/07 14:48:27:

  • mathieu commented:

In changeset 286c757:

#!CommitTicketReference repository="sasview" revision="286c7571e8019b4c28a92d3d497cac7da825076c"
Make sure we can compute models w/o data. Fixes #837
  • mathieu changed resolution from "" to "fixed"
  • mathieu changed status from "assigned" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker Prevents a different issue from being resolved Defect Bug or undesirable behaviour
Projects
None yet
Development

No branches or pull requests

3 participants