Commit 173cff8b authored by JGlombitza's avatar JGlombitza
Browse files

v1.2

parent 89690194
...@@ -28,7 +28,7 @@ for i in range(0,len(filenames)): ...@@ -28,7 +28,7 @@ for i in range(0,len(filenames)):
time = norm.NormCenter(time) time = norm.NormCenter(time)
# Preprocessing of signal # Preprocessing of signal
signal[signal<0] = 0 signal[np.less(signal,0)] = 0
SignalSum = norm.NormPhysicalEnergylog10(np.sum(signal, axis=-1)) SignalSum = norm.NormPhysicalEnergylog10(np.sum(signal, axis=-1))
signal = norm.NormPhysicalTimeTracelog10(signal) signal = norm.NormPhysicalTimeTracelog10(signal)
......
...@@ -13,7 +13,7 @@ def NormCenter(time): ...@@ -13,7 +13,7 @@ def NormCenter(time):
def NormPhysicalEnergylog10(time): def NormPhysicalEnergylog10(time):
u = np.isnan(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[~u] = np.log10(time[~u]-np.nanmin(time)+1.0)
time /= np.nanstd(time) time /= np.nanstd(time)
time[u] = 0 time[u] = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment