Skip to content

testing custom models - issues? (Trac #706) #832

@RichardHeenan

Description

@RichardHeenan

Trying to follow manual "Writing a plugin model" to add a model (actually a needed reparametrisation of hollow_cylinder, see #806)

Please make the "info" box on "check model" results larger, as I had to copy & paste the output elsewhere to make sense of it.

After successful compile, is there a bug in:

run_one("c:/users/rkh98/.sasview/plugin_models/hollow_cylinder_new.py")
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\stfc\sasview4\sasmodels\sasmodels\model_test.py", line 293, in run_one
    if not suite._tests[0].info.tests:
IndexError: list index out of range

or was it an issue with my new model?

If you don't have openCL then the default "main()" test fails, could say how to get around this. I can get it to work with the openMP version:

main("-single!","-double!", "c:/users/rkh98/.sasview/plugin_models/hollow_cylinder_new.py")

Would be useful if manual said that ctrl/uparrow gets previous line back in python shell.

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

{
    "status": "closed",
    "changetime": "2016-10-10T15:17:43",
    "_ts": "2016-10-10 15:17:43.162022+00:00",
    "description": "Trying to follow manual \"Writing a plugin model\" to add a model (actually a needed reparametrisation of hollow_cylinder, see #675)\n\nPlease make the \"info\" box on \"check model\" results larger, as I had to copy & paste the output elsewhere to make sense of it.\n\nAfter successful compile, is there a bug in:\n\n{{{\nrun_one(\"c:/users/rkh98/.sasview/plugin_models/hollow_cylinder_new.py\")\nTraceback (most recent call last):\n  File \"<input>\", line 1, in <module>\n  File \"C:\\stfc\\sasview4\\sasmodels\\sasmodels\\model_test.py\", line 293, in run_one\n    if not suite._tests[0].info.tests:\nIndexError: list index out of range\n}}}\nor was it an issue with my new model?\n\nIf you don't have openCL then the default \"main()\" test fails, could say how to get around this. I can get it to work with the openMP version:\n\n{{{\nmain(\"-single!\",\"-double!\", \"c:/users/rkh98/.sasview/plugin_models/hollow_cylinder_new.py\")\n}}}\n\nWould be useful if manual said that ctrl/uparrow gets previous line back in python shell.\n",
    "reporter": "richardh",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2016-10-05T20:09:39",
    "component": "SasView",
    "summary": "testing custom models - issues?",
    "priority": "minor",
    "keywords": "",
    "milestone": "SasView 4.1.0",
    "owner": "pkienzle",
    "type": "defect"
}

Metadata

Metadata

Assignees

Labels

DefectBug or undesirable behaviourMinorSmall job

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions