Skip to content

Latest Bug with qury display #170

Description

@dadamsncsa

Describe the bug

SELF is: <gresq.dashboard.query_2_0.query_2_0.RamanDisplayTab object at 0x7f58f4585790> 
 Model is: <Experiment(id=19)> 
 trying to print id 19
raman_files ar [<RamanFile(id=1,experiment_id=19,raman_analyses=[<RamanAnalysis(id=1)>])>]
ERROR:gresq.util.util:Traceback (most recent call last):
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 783, in setData
    value = getattr(model, field)
AttributeError: 'list' object has no attribute 'gp_to_g'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dadams/devel/GSAMain/src/gresq/util/util.py", line 58, in wrapper
    return func(*args, **kwargs)
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 1255, in update
    self.weighted_values.setData(raman_analysis)
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 787, in setData
    print(type(value), e)
UnboundLocalError: local variable 'value' referenced before assignment
Traceback (most recent call last):
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 783, in setData
    value = getattr(model, field)
AttributeError: 'list' object has no attribute 'gp_to_g'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dadams/devel/GSAMain/src/gresq/util/util.py", line 58, in wrapper
    return func(*args, **kwargs)
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 1255, in update
    self.weighted_values.setData(raman_analysis)
  File "/home/dadams/devel/GSAMain/src/gresq/dashboard/query_2_0/query_2_0.py", line 787, in setData
    print(type(value), e)
UnboundLocalError: local variable 'value' referenced before assignment

image

To Reproduce

Expected behavior

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions