View Issue Details

IDProjectCategoryView StatusLast Update
0000514ascendpygtk guipublic2013-02-26 13:42
Assigned Toaakash 
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version11.04
Product Version 
Target Version0.9.9Fixed in Version 
Summary0000514: Minor bug in
DescriptionInstead of giving a warning, the program gives an error when someone mistakenly tries to assign units to dimensionless variables.
Steps To ReproduceLoad any model, and try to change the value of any dimensionless variable to say "1.0 m".
Additional InformationTraceback (most recent call last):
  File "/home/aakash/ascend/pygtk/", line 198, cell_edited_callback(self=<modelview.ModelView instance>, renderer=<gtk.CellRendererText object at 0xb0c820c (GtkCellRendererText at 0xa2a0688)>, path=(0, 5), newtext='2.0 m', **kwargs={})
  variables: {'_e.checkEntry': ('local', <bound method RealAtomEntry.checkEntry of <varentry.RealAtomEntry instance at 0xb14c5ec>>)}
  File "/home/aakash/ascend/pygtk/", line 74, checkEntry(self=<varentry.RealAtomEntry instance>)
            raise InputError("Incompatible units '%s' (must fit with '%s')"
                % (self.units, _my_dims.getName().toString()) )
  variables: {'self.units': ('local', 'm')}
AttributeError: 'str' object has no attribute 'getName'
TagsNo tags attached.



There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-07-10 21:46 aakash New Issue
2011-07-10 21:46 aakash Status new => assigned
2011-07-10 21:46 aakash Assigned To => aakash
2011-07-10 21:48 svn
2011-07-10 21:48 svn Status assigned => resolved
2011-07-10 21:48 svn Resolution open => fixed
2013-02-26 13:42 john Target Version => 0.9.9