Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DavidWalz
airshower-deeplearning
Commits
173cff8b
Commit
173cff8b
authored
Sep 04, 2017
by
JGlombitza
Browse files
v1.2
parent
89690194
Changes
2
Hide whitespace changes
Inline
Side-by-side
PreProcessing.py
View file @
173cff8b
...
...
@@ -28,7 +28,7 @@ for i in range(0,len(filenames)):
time
=
norm
.
NormCenter
(
time
)
# Preprocessing of signal
signal
[
signal
<
0
]
=
0
signal
[
np
.
less
(
signal
,
0
)
]
=
0
SignalSum
=
norm
.
NormPhysicalEnergylog10
(
np
.
sum
(
signal
,
axis
=-
1
))
signal
=
norm
.
NormPhysicalTimeTracelog10
(
signal
)
...
...
norm.py
View file @
173cff8b
...
...
@@ -13,7 +13,7 @@ def NormCenter(time):
def
NormPhysicalEnergylog10
(
time
):
u
=
np
.
isnan
(
time
)
time
[
time
<
0
]
=
0
time
[
np
.
less
(
time
,
0
)
]
=
0
time
[
~
u
]
=
np
.
log10
(
time
[
~
u
]
-
np
.
nanmin
(
time
)
+
1.0
)
time
/=
np
.
nanstd
(
time
)
time
[
u
]
=
0
...
...
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