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
61d40657
Commit
61d40657
authored
Nov 29, 2017
by
syz
Committed by
CompPhysChris
Nov 30, 2017
Browse files
Duplicate checking now inherited from super
parent
5bdf8800
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/processing/signal_filter.py
View file @
61d40657
...
...
@@ -106,12 +106,8 @@ class SignalFilter(Process):
self
.
parms_dict
[
'noise_threshold'
]
=
self
.
noise_threshold
self
.
parms_dict
[
'num_pix'
]
=
self
.
num_effective_pix
duplicates
=
check_for_old
(
self
.
h5_main
,
'FFT_Filtering'
,
new_parms
=
self
.
parms_dict
)
if
self
.
verbose
:
print
(
'Checking for duplicates:'
)
print
(
duplicates
)
if
duplicates
is
not
None
:
print
(
'WARNING! FFT filtering has already been performed with the same parameters before. Consider reusing results'
)
self
.
process_name
=
'FFT_Filtering'
self
.
duplicate_h5_groups
=
self
.
_check_for_duplicates
()
self
.
data
=
None
self
.
filtered_data
=
None
...
...
@@ -126,7 +122,7 @@ class SignalFilter(Process):
Creates all the datasets necessary for holding all parameters + data.
"""
grp_name
=
self
.
h5_main
.
name
.
split
(
'/'
)[
-
1
]
+
'-
FFT_Filtering
_'
grp_name
=
self
.
h5_main
.
name
.
split
(
'/'
)[
-
1
]
+
'-
'
+
self
.
process_name
+
'
_'
grp_filt
=
MicroDataGroup
(
grp_name
,
self
.
h5_main
.
parent
.
name
)
self
.
parms_dict
.
update
({
'last_pixel'
:
0
,
'algorithm'
:
'pycroscopy_SignalFilter'
})
...
...
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