Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
9d6383a4
Commit
9d6383a4
authored
Nov 20, 2017
by
Unknown
Browse files
Image Cleaning notebook bugfix
parent
fd1812c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
jupyter_notebooks/Image_Cleaning_Atom_Finding.ipynb
View file @
9d6383a4
...
...
@@ -527,11 +527,11 @@
# See if there are existing cluster results
try
:
h5_kmeans
=
h5_svd
[
'U-Cluster_000'
]
print
(
'Clustering results loaded. Will now check parameters'
)
except
:
except
Exception
:
print
(
'Could not load Clustering results.'
)
do_cluster
=
True
# Check that the same components are used
if
not
do_cluster
:
...
...
@@ -657,12 +657,10 @@
axes
[
1
].
axhline
(
y
=
half_wind
,
color
=
'k'
)
plt
.
show
()
def
_update_motif_img
(
row
,
col
):
current_center
[
0
]
=
row
current_center
[
1
]
=
col
indices
=
(
slice
(
row
-
half_wind
,
row
+
half_wind
),
slice
(
col
-
half_wind
,
col
+
half_wind
))
motif_box
.
set_x
(
col
-
half_wind
)
motif_box
.
set_y
(
row
-
half_wind
)
...
...
Write
Preview
Markdown
is supported
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