Skip to content

Variable label #31

@sampsonbryce

Description

@sampsonbryce

In the variable model, the get_variable_label function fails on occasion with error:

 File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CDAT_GUI-0.1-py2.7.egg/cdatgui/variables/variable_widget.py", line 54, in edit_variable
    label = self.variable_widget.get_variable_label(variable)
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CDAT_GUI-0.1-py2.7.egg/cdatgui/variables/cdms_var_list.py", line 37, in get_variable_label
    return self.model().get_variable_label(var)
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CDAT_GUI-0.1-py2.7.egg/cdatgui/variables/models.py", line 23, in get_variable_label
    if value == var:
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CDAT_GUI-0.1-py2.7.egg/cdatgui/cdat/metadata.py", line 241, in __eq__
    v = self.var.__eq__(*args)
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/avariable.py", line 1472, in __eq__
    return MV.equal(self,other)
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/MV2.py", line 228, in __call__
    maresult = self.mafunc(ta,tb)
  File "/usr/local/uvcdat/2.4.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/ma/core.py", line 935, in __call__
    result = self.f(da, db, *args, **kwargs)
ValueError: operands could not be broadcast together with shapes (120,40,72) (120,46,72) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions