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
ift
NIFTy
Commits
4d7e7b46
Commit
4d7e7b46
authored
Jan 23, 2017
by
Theo Steininger
Browse files
Deactivated the plotly stuff in the wiener_filter.py
parent
e4dcb089
Pipeline
#9563
passed with stage
in 28 minutes and 41 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter.py
View file @
4d7e7b46
from
nifty
import
*
import
plotly.offline
as
pl
import
plotly.graph_objs
as
go
#
import plotly.offline as pl
#
import plotly.graph_objs as go
from
mpi4py
import
MPI
comm
=
MPI
.
COMM_WORLD
...
...
@@ -50,8 +50,8 @@ if __name__ == "__main__":
d_data
=
d
.
val
.
get_full_data
().
real
m_data
=
m
.
val
.
get_full_data
().
real
ss_data
=
ss
.
val
.
get_full_data
().
real
if
rank
==
0
:
pl
.
plot
([
go
.
Heatmap
(
z
=
d_data
)],
filename
=
'data.html'
)
pl
.
plot
([
go
.
Heatmap
(
z
=
m_data
)],
filename
=
'map.html'
)
pl
.
plot
([
go
.
Heatmap
(
z
=
ss_data
)],
filename
=
'map_orig.html'
)
#
if rank == 0:
#
pl.plot([go.Heatmap(z=d_data)], filename='data.html')
#
pl.plot([go.Heatmap(z=m_data)], filename='map.html')
#
pl.plot([go.Heatmap(z=ss_data)], filename='map_orig.html')
#
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