Skip to content

Fix loading of models in models.py and autodiscovery (Trac #506) #1319

@butlerpd

Description

@butlerpd

models are loaded and assigned to lists and dictionaries hard coded in models.py. All that information should now be in the models themselves. Need to replace the huge chunk of code with a loop reading all models in the models directory and getting their names (to populate a model names list for GUI dropdown) and populate the appropriate lists and dictionaries.

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

{
    "status": "closed",
    "changetime": "2016-03-18T15:57:48",
    "_ts": "2016-03-18 15:57:48.294221+00:00",
    "description": "models are loaded and assigned to lists and dictionaries hard coded in models.py.   All that information should now be in the models themselves.  Need to replace the huge chunk of code with a loop reading all models in the models directory and getting their names (to populate a model names list for GUI dropdown)  and populate the appropriate lists and dictionaries.\n",
    "reporter": "butler",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasModels Redesign",
    "time": "2016-03-06T22:51:31",
    "component": "SasView",
    "summary": "Fix loading of models in models.py and autodiscovery",
    "priority": "blocker",
    "keywords": "",
    "milestone": "SasView 4.0.0",
    "owner": "ajj",
    "type": "task"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions