Opened 8 years ago
Closed 7 years ago
#864 closed defect (fixed)
New Model Editor (simple plugin editor) error parsing parameter line
Reported by: | butler | Owned by: | lewis |
---|---|---|---|
Priority: | minor | Milestone: | SasView 4.2.0 |
Component: | SasView | Keywords: | |
Cc: | Work Package: | SasView Bug Fixing |
Description
If one tries to add a comment to the end of a parameter line in the parameter box as below, the editor parses the name correctly but not the value to which it just assigns one. It however shows a "success" and no indication that anything was amiss.
radius = 32 # radius of torrus
becomes
parameters = [ ['radius', '', 1, [-numpy.inf, numpy.inf], '', ''], ]
Ideally the string after the comment should be used for the parameter description (instead of "") but at least it should get the value correctly. Alternatively, at the very least an error should be returned to the user rather than generating an arbitrary value.
Change History (3)
comment:1 Changed 8 years ago by butler
- Milestone changed from SasView 4.1.0 to SasView 4.2.0
comment:2 Changed 7 years ago by lewis
- Owner set to lewis
- Status changed from new to assigned
comment:3 Changed 7 years ago by lewis
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Fixed in commit 40add21fd2b2e8d49823c414d2a8d0c4cccba771