Skip to content

Provide better error message when CanSAS file has invalid units (Trac #276) #423

@smk78

Description

@smk78

Currently, if a CanSAS file with unsupported units is loaded into
SasView - for example, where "count" is not defined
in the standard - the following error message is returned when one
attempts to plot/fit the data:

'Plotting Error: Plottable.View: Given y and x are not of the same
length'

This is confusing (as it insinuates either Q or I data is missing)
but also draws attention away from the underlying problem.

Some form of syntactic checking is required and failure should respond
with a sensible error message.

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

{
    "status": "closed",
    "changetime": "2015-02-14T16:56:23",
    "_ts": "2015-02-14 16:56:23.910317+00:00",
    "description": "Currently, if a CanSAS file with unsupported units is loaded into \nSasView - for example, <I unit=\"count\"> where \"count\" is not defined \nin the standard - the following error message is returned when one \nattempts to plot/fit the data:\n\n'Plotting Error: Plottable.View: Given y and x are not of the same \nlength'\n\nThis is confusing (as it insinuates either Q or I data is missing) \nbut also draws attention away from the underlying problem.\n\nSome form of syntactic checking is required and failure should respond \nwith a sensible error message.\n",
    "reporter": "smk78",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2014-12-19T11:47:14",
    "component": "SasView",
    "summary": "Provide better error message when CanSAS file has invalid units",
    "priority": "major",
    "keywords": "",
    "milestone": "SasView 3.1.0",
    "owner": "",
    "type": "enhancement"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementFeature requests and/or general improvementsMajorBig change in the code or important change in behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions