Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eva Schiffer
UW-Glance
Commits
cb367f68
Commit
cb367f68
authored
Jan 19, 2022
by
Eva Schiffer
Browse files
adding a warning if you try to display data for a variable with more than 2 dimensions
parent
c8311074
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyglance/glance/gui_controller.py
View file @
cb367f68
...
...
@@ -241,8 +241,16 @@ class GlanceGUIController (object) :
"""
# show the data for whatever's loaded
self
.
stats
.
sendRawData
(
A_CONST
)
self
.
stats
.
sendRawData
(
B_CONST
)
try
:
self
.
stats
.
sendRawData
(
A_CONST
)
except
ValueError
as
ve
:
self
.
handleWarning
(
str
(
ve
))
try
:
self
.
stats
.
sendRawData
(
B_CONST
)
except
ValueError
as
ve
:
self
.
handleWarning
(
str
(
ve
))
def
userRequestsGlobalAttrs
(
self
)
:
"""
...
...
pyglance/glance/gui_view.py
View file @
cb367f68
...
...
@@ -963,8 +963,9 @@ class GlanceGUIView (QWidget) :
stored_in
=
self
.
infoWindows
)
else
:
LOG
.
debug
(
"Unable to display data for variable "
+
variableName
+
" because it's shape of "
+
str
(
variableDataObject
.
data
.
shape
)
+
" will not work in display window."
)
raise
ValueError
(
"Unable to display data for variable "
+
variableName
+
" because it's shape of "
+
str
(
variableDataObject
.
data
.
shape
)
+
" will not fit in display window "
"control structure."
)
def
fileDataUpdate
(
self
,
file_prefix
,
file_path
,
selected_variable
,
use_fill_override
,
new_fill_value
,
variable_dimensions
,
variable_list
=
None
,
attribute_list
=
None
)
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment