Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Bug with qury display #170

Open
dadamsncsa opened this issue Apr 27, 2022 · 0 comments
Open

Latest Bug with qury display #170

dadamsncsa opened this issue Apr 27, 2022 · 0 comments
Labels

Comments

@dadamsncsa
Copy link
Member

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

@dadamsncsa dadamsncsa added the bug label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant