Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
f75c4fbb
Commit
f75c4fbb
authored
Jan 12, 2023
by
mohamedadelnaguib
Browse files
Fixing an assertion error happen when the number of inout equals to and the axs isn't None
parent
f512a914
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymor/models/transfer_function.py
View file @
f75c4fbb
...
...
@@ -272,6 +272,8 @@ class TransferFunction(CacheableObject, ParametricObject):
fig
.
set_constrained_layout
(
True
)
ax
=
fig
.
subplots
(
2
*
num_output
,
num_input
,
sharex
=
True
,
squeeze
=
False
)
else
:
if
num_input
==
1
:
ax
=
ax
.
reshape
((
2
*
num_output
,
1
))
assert
isinstance
(
ax
,
np
.
ndarray
)
assert
ax
.
shape
==
(
2
*
num_output
,
num_input
),
\
f
'ax.shape=
{
ax
.
shape
}
should be (
{
2
*
num_output
}
,
{
num_input
}
)'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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