diff --git a/gmprocess/data/nn_clipping/bias_1.csv b/gmprocess/data/nn_clipping/bias_1.csv new file mode 100644 index 000000000..6bd7544d6 --- /dev/null +++ b/gmprocess/data/nn_clipping/bias_1.csv @@ -0,0 +1,16 @@ +4.761942028999328613e-01 +0.000000000000000000e+00 +-1.225080061703920364e-02 +-1.355059593915939331e-01 +-1.208401098847389221e-01 +-7.738453336060047150e-03 +4.859382510185241699e-01 +4.901650547981262207e-01 +-2.172667719423770905e-02 +4.954338967800140381e-01 +-1.108687669038772583e-01 +2.171477675437927246e-01 +0.000000000000000000e+00 +-2.487021684646606445e-02 +-1.521449834108352661e-01 +-1.403292119503021240e-01 diff --git a/gmprocess/data/nn_clipping/bias_output.csv b/gmprocess/data/nn_clipping/bias_output.csv new file mode 100644 index 000000000..7daddde9e --- /dev/null +++ b/gmprocess/data/nn_clipping/bias_output.csv @@ -0,0 +1 @@ +-2.244666516780853271e-01 diff --git a/gmprocess/data/nn_clipping/masterF.txt b/gmprocess/data/nn_clipping/masterF.txt new file mode 100644 index 000000000..ec5a8d545 --- /dev/null +++ b/gmprocess/data/nn_clipping/masterF.txt @@ -0,0 +1 @@ +5, 16,'relu',1, 'sigmoid' diff --git a/gmprocess/data/nn_clipping/weight_1.csv b/gmprocess/data/nn_clipping/weight_1.csv new file mode 100644 index 000000000..b66901fe7 --- /dev/null +++ b/gmprocess/data/nn_clipping/weight_1.csv @@ -0,0 +1,5 @@ +3.450458645820617676e-01,-7.405894994735717773e-02,-1.254874318838119507e-01,6.901898235082626343e-02,6.200880929827690125e-02,-5.206618085503578186e-02,3.653981387615203857e-01,3.055597841739654541e-01,-1.107454746961593628e-01,3.208941221237182617e-01,2.763029001653194427e-02,1.331859640777111053e-02,-6.405838578939437866e-02,-6.867430359125137329e-02,3.231020644307136536e-02,2.827584557235240936e-02 +3.734845221042633057e-01,2.110916376113891602e-02,-8.760424703359603882e-02,2.904709428548812866e-02,2.542885206639766693e-02,1.748742721974849701e-02,3.287482857704162598e-01,3.899096846580505371e-01,1.059170365333557129e-01,3.266265094280242920e-01,-2.623116225004196167e-02,-7.134835422039031982e-02,-3.654503822326660156e-02,5.247752740979194641e-02,-1.276246458292007446e-01,-8.618847280740737915e-02 +-2.637018561363220215e-01,9.931030683219432831e-03,7.612888514995574951e-02,4.233799874782562256e-01,3.749962747097015381e-01,-3.536137193441390991e-02,-2.761034965515136719e-01,-2.436323314905166626e-01,-4.983592405915260315e-02,-2.751033008098602295e-01,3.659239709377288818e-01,-4.732813537120819092e-01,-3.619530797004699707e-02,2.397446148097515106e-02,4.228172004222869873e-01,3.860528171062469482e-01 +-6.323192119598388672e-01,4.159574955701828003e-02,-5.320734810084104538e-03,6.299901008605957031e-01,6.613637804985046387e-01,-6.171951442956924438e-02,-6.351884603500366211e-01,-6.061330437660217285e-01,1.258744485676288605e-02,-5.780773162841796875e-01,6.167728900909423828e-01,-4.708586633205413818e-01,2.903726417571306229e-03,3.173625096678733826e-02,6.945689320564270020e-01,6.336471438407897949e-01 +-7.286261767148971558e-02,-1.223115250468254089e-02,5.675805732607841492e-02,3.030084669589996338e-01,2.992148697376251221e-01,3.216066956520080566e-02,-1.026946008205413818e-01,-3.335395455360412598e-02,2.125462144613265991e-02,-9.568803012371063232e-02,2.686659991741180420e-01,3.815599381923675537e-01,3.298680111765861511e-02,1.124517992138862610e-02,2.315190583467483521e-01,2.518956959247589111e-01 diff --git a/gmprocess/data/nn_clipping/weight_output.csv b/gmprocess/data/nn_clipping/weight_output.csv new file mode 100644 index 000000000..6f4e6f38f --- /dev/null +++ b/gmprocess/data/nn_clipping/weight_output.csv @@ -0,0 +1,16 @@ +-5.802513360977172852e-01 +-4.969757422804832458e-02 +-1.531651243567466736e-02 +5.004003047943115234e-01 +5.555523037910461426e-01 +1.285628415644168854e-02 +-4.915536046028137207e-01 +-5.825893878936767578e-01 +5.253348499536514282e-02 +-5.880233645439147949e-01 +5.758425593376159668e-01 +-6.398365497589111328e-01 +8.936516940593719482e-03 +-5.767295602709054947e-03 +5.209476947784423828e-01 +5.556588172912597656e-01 diff --git a/gmprocess/version.py b/gmprocess/version.py index b27361835..f21371c7f 100644 --- a/gmprocess/version.py +++ b/gmprocess/version.py @@ -1 +1 @@ -__version__ = "1.1.9.dev7+g4d21e34.d20210915" \ No newline at end of file +__version__ = "1.1.9.dev20+gd3c99f3.d20210920" \ No newline at end of file diff --git a/gmprocess/waveform_processing/clipping/clip_detection.py b/gmprocess/waveform_processing/clipping/clip_detection.py index 6a18d6c15..5010f4db1 100644 --- a/gmprocess/waveform_processing/clipping/clip_detection.py +++ b/gmprocess/waveform_processing/clipping/clip_detection.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + class ClipDetection(): ''' Parent class for clipping detection algorithms. @@ -18,6 +21,7 @@ class ClipDetection(): _get_results(): Iterates through and runs _detect() on each trace in the stream. ''' + def __init__(self, st, test_all=False): ''' Constructs all neccessary attributes for the ClipDetection method @@ -32,7 +36,7 @@ def __init__(self, st, test_all=False): self.st = st.copy() self.is_clipped = False self.test_all = test_all - + def _clean_trace(self, tr): ''' Helper function to clean the trace @@ -86,4 +90,4 @@ def _get_results(self): if self.test_all: continue else: - break \ No newline at end of file + break diff --git a/gmprocess/waveform_processing/clipping/clipping_ann.py b/gmprocess/waveform_processing/clipping/clipping_ann.py new file mode 100644 index 000000000..0e40debd0 --- /dev/null +++ b/gmprocess/waveform_processing/clipping/clipping_ann.py @@ -0,0 +1,254 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +"""Module for implementing the Artificial Neural Net model for clipping, as +developed by Kleckner et al. This code is based on Xavier Bellagamba's python +NN implementation of "A neural network for automated quality screening of +ground motion records from small magnitude earthquakes" +DOI: 10.1193/122118EQS292M +""" + +import csv +import numpy as np +import pkg_resources +import os + +# Path to model data +NN_PATH = os.path.join('data', 'nn_clipping') +NN_PATH = pkg_resources.resource_filename('gmprocess', NN_PATH) + + +class clipNet(): + ''' + Class allowing the instantiation and use of simple (1 or 2 layers) + neural networks + ''' + + def __init__(self): + ''' + Instantiate an empty neural network (no weights, functions, or + biases loaded + ''' + self.n_input = 0 + self.n_neuron_H1 = 0 + self.n_neuron_H2 = -1 + self.n_output = 0 + self.activation_H1 = 'NA' + self.activation_H2 = 'NA' + self.activation_output = 'NA' + self.w_H1 = [] + self.w_H2 = [] + self.b_H1 = [] + self.b_H2 = [] + self.w_output = [] + self.b_output = [] + + data_path = os.path.join(NN_PATH, 'masterF.txt') + with open(data_path) as masterF: + readCSV = csv.reader(masterF) + for row in readCSV: + if len(row) == 7: + self.n_input = int(row[0]) + self.n_neuron_H1 = int(row[1]) + # self.n_neuron_H2 = int(row[3]) + self.n_output = int(row[5]) + self.activation_H1 = row[2] + # self.activation_H2 = row[4] + self.activation_output = row[6] + elif len(row) == 5: + self.n_input = int(row[0]) + self.n_neuron_H1 = int(row[1]) + self.n_output = int(row[3]) + self.activation_H1 = row[2] + self.activation_output = row[4] + + masterF.close() + + # Load weights and biases + # Weights first hidden layer + data_path = os.path.join(NN_PATH, 'weight_1.csv') + self.w_H1 = np.asarray(loadCSV(data_path)) + + # Biases first hidden layer + data_path = os.path.join(NN_PATH, 'bias_1.csv') + self.b_H1 = np.asarray(loadCSV(data_path)) + + # Weights output layer + data_path = os.path.join(NN_PATH, 'weight_output.csv') + self.w_output = np.asarray(loadCSV(data_path)) + + # Biases output layer + data_path = os.path.join(NN_PATH, 'bias_output.csv') + self.b_output = np.asarray(loadCSV(data_path)) + + # Second hidden layer + if self.n_neuron_H2 != -1: + # Weights second hidden layer + data_path = os.path.join(NN_PATH, 'weight_2.csv') + self.w_H2 = np.asarray(loadCSV(data_path)) + + # Biases second hidden layer + data_path = os.path.join(NN_PATH, 'bias_2.csv') + self.b_H2 = np.asarray(loadCSV(data_path)) + + def evaluate(self, v_input): + ''' + Use a populated neural network (i.e. from the input, returns the + classification score or the regression result). + + Args: + v_input (list or np.array): + Values to correspond to the following paramters: mag, dist, 6M + amplitude check, histogram check, ping check. + + Returns: + np.array: numpy array containing the results. + ''' + # Transform input if required + if isinstance(v_input, list): + v_input = np.asarray(v_input) + + t1 = np.array([8.8, 445.8965938, 1., 1., 1.]) + t2 = np.array([4, 0.68681514, 0., 0., 0.]) + t3 = np.array([0., 0., 0., 0., 0.]) + v_input = 2.0 / (t1 - t2) * (v_input - t3) + + v_inter = np.array([]) + + # First layer + if self.activation_H1 == 'sigmoid': + v_inter = sigmoid(np.dot(v_input.T, self.w_H1) + self.b_H1) + elif self.activation_H1 == 'tanh': + v_inter = tanh(np.dot(v_input.T, self.w_H1) + self.b_H1) + elif self.activation_H1 == 'relu': + v_inter = relu(np.dot(v_input.T, self.w_H1) + self.b_H1) + else: + v_inter = relu(np.dot(v_input.T, self.w_H1) + self.b_H1.T) + + # If second layer exist + if self.n_neuron_H2 != -1: + if self.activation_H2 == 'sigmoid': + v_inter = sigmoid(np.dot(v_inter, self.w_H2) + self.b_H2) + elif self.activation_H2 == 'tanh': + v_inter = tanh(np.dot(v_inter, self.w_H2) + self.b_H2) + else: + v_inter = np.dot(v_inter, self.w_H2) + self.b_H2 + + # Final layer + if self.activation_output == 'sigmoid': + v_inter = sigmoid(np.dot(v_inter, self.w_output) + self.b_output) + elif self.activation_output == 'tanh': + v_inter = tanh(np.dot(v_inter, self.w_output) + self.b_output) + else: + v_inter = sigmoid(np.dot(v_inter, self.w_output) + self.b_output) + + return v_inter + + +def loadCSV(data_path, row_ignore=0, col_ignore=0): + ''' + Load csv files from a given path and returns a list of list. + For all imported data, check if is a number. If so, returns a + float. If not, returns a string. + + Args: + data_path (string): + path to the csv to load. + row_ignore (int): + number of rows to ignore. + col_ignore (int): + number of columns to ignore. + + Returns: + list of list: containing the data from the csv + ''' + + M = [] + with open(data_path) as csvfile: + readCSV = csv.reader(csvfile) + + # Skip header + for i in range(row_ignore): + next(csvfile) + + for row in readCSV: + # Input vector + single_line = [] + for i in range(col_ignore, len(row)): + if isNumber(row[i]): + single_line.append(float(row[i])) + else: + single_line.append(row[i]) + M.append(single_line) + + return M + + +def sigmoid(v_input): + ''' + Performs a sigmoid operation on the input (1/(e(-x)+1)) + + Args: + v_input (float): + a number defined on R (real). + + Returns: + float: sigmoid result (a number between 0 and 1). + ''' + v_act = [] + for x in v_input: + v_act.append(1. / (1 + np.exp(-x))) + return v_act + + +def tanh(v_input): + ''' + Performs a hyperbolic tangent operation on the input (2/(e(2x)+1)) + + Args: + v_input (float): + a number defined on R (real). + + Returns: + float: tanh result (a number between -1 and 1). + ''' + v_act = [] + for x in v_input: + v_act.append(np.tanh(x)) + return v_act + + +def relu(v_input): + ''' + Performs a hyperbolic tangent operation on the input (2/(e(2x)+1)) + + Args: + v_input (float): + a number defined on R (real). + + Returns: + float: tanh result (a number between -1 and 1). + ''' + v_act = [] + for x in v_input: + v_act.append(np.maximum(0.0, x)) + return v_act + + +def isNumber(s): + ''' + Check if given input is a number. + + Args: + s (any type): + Data to test. + + Returns: + bool: True if is a number, False if isn't + ''' + try: + float(s) + return True + + except ValueError: + return False diff --git a/gmprocess/waveform_processing/clipping/histogram.py b/gmprocess/waveform_processing/clipping/histogram.py index e913ff86f..1a59c4306 100644 --- a/gmprocess/waveform_processing/clipping/histogram.py +++ b/gmprocess/waveform_processing/clipping/histogram.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import numpy as np from statsmodels.tsa.holtwinters import ExponentialSmoothing from gmprocess.waveform_processing.clipping.clip_detection import ClipDetection @@ -57,14 +60,6 @@ def __init__(self, st, num_bins=6200, min_width=7, self.num_clip_intervals = None self._get_results() - def _clean_trace(self, tr): - ''' - Helper function to clean a trace. - - See parent class. - ''' - return ClipDetection._clean_trace(self, tr) - def _signal_scale(self, signal, alpha): ''' Helper function to scale signal data diff --git a/gmprocess/waveform_processing/clipping/jerk.py b/gmprocess/waveform_processing/clipping/jerk.py index 39ad3292f..01ec57da6 100644 --- a/gmprocess/waveform_processing/clipping/jerk.py +++ b/gmprocess/waveform_processing/clipping/jerk.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import numpy as np from gmprocess.waveform_processing.clipping.clip_detection import ClipDetection @@ -45,14 +48,6 @@ def __init__(self, st, point_thresh=25, test_all=False): self.num_outliers = None self._get_results() - def _clean_trace(self, tr): - ''' - Helper function to clean a trace. - - See parent class. - ''' - return ClipDetection._clean_trace(self, tr) - def _detect(self, tr): ''' Check for jerk outliers. Based on method described by: diff --git a/gmprocess/waveform_processing/clipping/max_amp.py b/gmprocess/waveform_processing/clipping/max_amp.py index 370ef841c..4f4a374e6 100644 --- a/gmprocess/waveform_processing/clipping/max_amp.py +++ b/gmprocess/waveform_processing/clipping/max_amp.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import numpy as np from gmprocess.waveform_processing.clipping.clip_detection import ClipDetection @@ -22,6 +25,7 @@ class Max_Amp(ClipDetection): Methods: See parent class. ''' + def __init__(self, st, max_amp_thresh=6e6, test_all=False): ''' Constructs all neccessary attributes for the Max_Amp method. @@ -93,4 +97,4 @@ def _get_results(self): See parent class. ''' - return ClipDetection._get_results(self) \ No newline at end of file + return ClipDetection._get_results(self) diff --git a/gmprocess/waveform_processing/clipping/ping.py b/gmprocess/waveform_processing/clipping/ping.py index 213bd6183..3e9a47951 100644 --- a/gmprocess/waveform_processing/clipping/ping.py +++ b/gmprocess/waveform_processing/clipping/ping.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import numpy as np from gmprocess.waveform_processing.clipping.clip_detection import ClipDetection @@ -48,14 +51,6 @@ def __init__(self, st, percent_thresh=0.57, test_all=False): self.num_outliers = None self._get_results() - def _clean_trace(self, tr): - ''' - Helper function to clean a trace. - - See parent class. - ''' - return ClipDetection._clean_trace(self, tr) - def _detect(self, tr): ''' If any two points differ by more than a threshold, fail the trace. diff --git a/gmprocess/waveform_processing/clipping/std_dev.py b/gmprocess/waveform_processing/clipping/std_dev.py index bd042fc16..88333b0a8 100644 --- a/gmprocess/waveform_processing/clipping/std_dev.py +++ b/gmprocess/waveform_processing/clipping/std_dev.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import numpy as np from gmprocess.waveform_processing.clipping.clip_detection import ClipDetection @@ -62,20 +65,12 @@ def __init__(self, st, amp_thresh=0.85, n_std=12, std_thresh=0.001, self.num_outliers = None self._get_results() - def _clean_trace(self, tr): - ''' - Helper function to clean a trace. - - See parent class. - ''' - return ClipDetection._clean_trace(self, tr) - def _detect(self, tr): ''' For all points with amplitude greater than amp_thresh, calculate - standard deviation (std) of the n_std neighboring points. Fail the trace - if the std of n_std neighboring points is less than std_thresh for - any point_thresh points. + standard deviation (std) of the n_std neighboring points. Fail the + trace if the std of n_std neighboring points is less than std_thresh + for any point_thresh points. Args: tr (StationTrace): diff --git a/gmprocess/waveform_processing/smoothing/konno_ohmachi.c b/gmprocess/waveform_processing/smoothing/konno_ohmachi.c index 6ca51490a..61ec08fb0 100644 --- a/gmprocess/waveform_processing/smoothing/konno_ohmachi.c +++ b/gmprocess/waveform_processing/smoothing/konno_ohmachi.c @@ -4,16 +4,16 @@ { "distutils": { "depends": [ - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h", - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h", - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h", - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h", - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h", + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h", + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h", + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h", + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h", + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h", "gmprocess/waveform_processing/smoothing/smoothing.h" ], "include_dirs": [ "gmprocess/waveform_processing/smoothing", - "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/core/include" + "/private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/core/include" ], "libraries": [ "m" @@ -925,7 +925,7 @@ typedef struct { } __Pyx_BufFmt_Context; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":690 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":690 * # in Cython to enable them only on the right systems. * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< @@ -934,7 +934,7 @@ typedef struct { */ typedef npy_int8 __pyx_t_5numpy_int8_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":691 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":691 * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< @@ -943,7 +943,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t; */ typedef npy_int16 __pyx_t_5numpy_int16_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":692 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":692 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< @@ -952,7 +952,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t; */ typedef npy_int32 __pyx_t_5numpy_int32_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":693 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":693 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< @@ -961,7 +961,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t; */ typedef npy_int64 __pyx_t_5numpy_int64_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":697 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":697 * #ctypedef npy_int128 int128_t * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< @@ -970,7 +970,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; */ typedef npy_uint8 __pyx_t_5numpy_uint8_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":698 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":698 * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< @@ -979,7 +979,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t; */ typedef npy_uint16 __pyx_t_5numpy_uint16_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":699 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":699 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< @@ -988,7 +988,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t; */ typedef npy_uint32 __pyx_t_5numpy_uint32_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":700 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":700 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< @@ -997,7 +997,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t; */ typedef npy_uint64 __pyx_t_5numpy_uint64_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":704 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":704 * #ctypedef npy_uint128 uint128_t * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< @@ -1006,7 +1006,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; */ typedef npy_float32 __pyx_t_5numpy_float32_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":705 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":705 * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< @@ -1015,7 +1015,7 @@ typedef npy_float32 __pyx_t_5numpy_float32_t; */ typedef npy_float64 __pyx_t_5numpy_float64_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":714 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":714 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< @@ -1024,7 +1024,7 @@ typedef npy_float64 __pyx_t_5numpy_float64_t; */ typedef npy_long __pyx_t_5numpy_int_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":715 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":715 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong long_t # <<<<<<<<<<<<<< @@ -1033,7 +1033,7 @@ typedef npy_long __pyx_t_5numpy_int_t; */ typedef npy_longlong __pyx_t_5numpy_long_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":716 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":716 * ctypedef npy_long int_t * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< @@ -1042,7 +1042,7 @@ typedef npy_longlong __pyx_t_5numpy_long_t; */ typedef npy_longlong __pyx_t_5numpy_longlong_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":718 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":718 * ctypedef npy_longlong longlong_t * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< @@ -1051,7 +1051,7 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t; */ typedef npy_ulong __pyx_t_5numpy_uint_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":719 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":719 * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<< @@ -1060,7 +1060,7 @@ typedef npy_ulong __pyx_t_5numpy_uint_t; */ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":720 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":720 * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< @@ -1069,7 +1069,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; */ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":722 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":722 * ctypedef npy_ulonglong ulonglong_t * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< @@ -1078,7 +1078,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; */ typedef npy_intp __pyx_t_5numpy_intp_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":723 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":723 * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< @@ -1087,7 +1087,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t; */ typedef npy_uintp __pyx_t_5numpy_uintp_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":725 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":725 * ctypedef npy_uintp uintp_t * * ctypedef npy_double float_t # <<<<<<<<<<<<<< @@ -1096,7 +1096,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t; */ typedef npy_double __pyx_t_5numpy_float_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":726 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":726 * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< @@ -1105,7 +1105,7 @@ typedef npy_double __pyx_t_5numpy_float_t; */ typedef npy_double __pyx_t_5numpy_double_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":727 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":727 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< @@ -1140,7 +1140,7 @@ static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(do /*--- Type declarations ---*/ -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":729 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":729 * ctypedef npy_longdouble longdouble_t * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< @@ -1149,7 +1149,7 @@ static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(do */ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":730 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":730 * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< @@ -1158,7 +1158,7 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; */ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":731 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":731 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< @@ -1167,7 +1167,7 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; */ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":733 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":733 * ctypedef npy_clongdouble clongdouble_t * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< @@ -1931,7 +1931,7 @@ static PyObject *__pyx_pf_9gmprocess_19waveform_processing_9smoothing_13konno_oh return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":735 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":735 * ctypedef npy_cdouble complex_t * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< @@ -1948,7 +1948,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":736 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":736 * * cdef inline object PyArray_MultiIterNew1(a): * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< @@ -1962,7 +1962,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":735 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":735 * ctypedef npy_cdouble complex_t * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< @@ -1981,7 +1981,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":738 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":738 * return PyArray_MultiIterNew(1, a) * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< @@ -1998,7 +1998,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":739 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":739 * * cdef inline object PyArray_MultiIterNew2(a, b): * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< @@ -2012,7 +2012,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":738 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":738 * return PyArray_MultiIterNew(1, a) * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< @@ -2031,7 +2031,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":741 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":741 * return PyArray_MultiIterNew(2, a, b) * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< @@ -2048,7 +2048,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":742 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":742 * * cdef inline object PyArray_MultiIterNew3(a, b, c): * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< @@ -2062,7 +2062,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":741 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":741 * return PyArray_MultiIterNew(2, a, b) * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< @@ -2081,7 +2081,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":744 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":744 * return PyArray_MultiIterNew(3, a, b, c) * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< @@ -2098,7 +2098,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":745 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":745 * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< @@ -2112,7 +2112,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":744 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":744 * return PyArray_MultiIterNew(3, a, b, c) * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< @@ -2131,7 +2131,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":747 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":747 * return PyArray_MultiIterNew(4, a, b, c, d) * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< @@ -2148,7 +2148,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":748 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":748 * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< @@ -2162,7 +2162,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":747 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":747 * return PyArray_MultiIterNew(4, a, b, c, d) * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< @@ -2181,7 +2181,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":750 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":750 * return PyArray_MultiIterNew(5, a, b, c, d, e) * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< @@ -2195,7 +2195,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ int __pyx_t_1; __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":751 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":751 * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< @@ -2205,7 +2205,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0); if (__pyx_t_1) { - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":752 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":752 * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape # <<<<<<<<<<<<<< @@ -2217,7 +2217,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":751 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":751 * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< @@ -2226,7 +2226,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ */ } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":754 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":754 * return d.subarray.shape * else: * return () # <<<<<<<<<<<<<< @@ -2240,7 +2240,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ goto __pyx_L0; } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":750 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":750 * return PyArray_MultiIterNew(5, a, b, c, d, e) * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< @@ -2255,7 +2255,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":929 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":929 * int _import_umath() except -1 * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< @@ -2267,7 +2267,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_array_base", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":930 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":930 * * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<< @@ -2276,7 +2276,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a */ Py_INCREF(__pyx_v_base); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":931 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":931 * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<< @@ -2285,7 +2285,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a */ (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base)); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":929 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":929 * int _import_umath() except -1 * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< @@ -2297,7 +2297,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a __Pyx_RefNannyFinishContext(); } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":933 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":933 * PyArray_SetBaseObject(arr, base) * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< @@ -2312,7 +2312,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py int __pyx_t_1; __Pyx_RefNannySetupContext("get_array_base", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":934 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":934 * * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) # <<<<<<<<<<<<<< @@ -2321,7 +2321,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ __pyx_v_base = PyArray_BASE(__pyx_v_arr); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":935 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":935 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -2331,7 +2331,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_t_1 = ((__pyx_v_base == NULL) != 0); if (__pyx_t_1) { - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":936 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":936 * base = PyArray_BASE(arr) * if base is NULL: * return None # <<<<<<<<<<<<<< @@ -2342,7 +2342,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":935 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":935 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -2351,7 +2351,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":937 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":937 * if base is NULL: * return None * return base # <<<<<<<<<<<<<< @@ -2363,7 +2363,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_r = ((PyObject *)__pyx_v_base); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":933 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":933 * PyArray_SetBaseObject(arr, base) * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< @@ -2378,7 +2378,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":941 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":941 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -2402,7 +2402,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_array", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -2418,7 +2418,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":943 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":943 * cdef inline int import_array() except -1: * try: * __pyx_import_array() # <<<<<<<<<<<<<< @@ -2427,7 +2427,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { */ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 943, __pyx_L3_error) - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -2441,7 +2441,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":944 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":944 * try: * __pyx_import_array() * except Exception: # <<<<<<<<<<<<<< @@ -2456,7 +2456,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":945 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":945 * __pyx_import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< @@ -2472,7 +2472,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":942 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -2487,7 +2487,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __pyx_L8_try_end:; } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":941 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":941 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -2510,7 +2510,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":947 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":947 * raise ImportError("numpy.core.multiarray failed to import") * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< @@ -2534,7 +2534,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_umath", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -2550,7 +2550,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":949 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":949 * cdef inline int import_umath() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -2559,7 +2559,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 949, __pyx_L3_error) - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -2573,7 +2573,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":950 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":950 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< @@ -2588,7 +2588,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":951 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":951 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< @@ -2604,7 +2604,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":948 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -2619,7 +2619,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __pyx_L8_try_end:; } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":947 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":947 * raise ImportError("numpy.core.multiarray failed to import") * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< @@ -2642,7 +2642,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":953 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":953 * raise ImportError("numpy.core.umath failed to import") * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< @@ -2666,7 +2666,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_ufunc", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -2682,7 +2682,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":955 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":955 * cdef inline int import_ufunc() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -2691,7 +2691,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(1, 955, __pyx_L3_error) - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -2705,7 +2705,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":956 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":956 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< @@ -2720,7 +2720,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":957 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":957 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< @@ -2736,7 +2736,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":954 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -2751,7 +2751,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __pyx_L8_try_end:; } - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":953 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":953 * raise ImportError("numpy.core.umath failed to import") * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< @@ -2774,7 +2774,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":967 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":967 * * * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<< @@ -2787,7 +2787,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_timedelta64_object", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":979 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":979 * bool * """ * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<< @@ -2797,7 +2797,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type)); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":967 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":967 * * * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<< @@ -2811,7 +2811,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":982 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":982 * * * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<< @@ -2824,7 +2824,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_datetime64_object", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":994 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":994 * bool * """ * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<< @@ -2834,7 +2834,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type)); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":982 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":982 * * * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<< @@ -2848,7 +2848,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":997 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":997 * * * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<< @@ -2859,7 +2859,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) { npy_datetime __pyx_r; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1004 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1004 * also needed. That can be found using `get_datetime64_unit`. * """ * return (obj).obval # <<<<<<<<<<<<<< @@ -2869,7 +2869,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":997 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":997 * * * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<< @@ -2882,7 +2882,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1007 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1007 * * * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<< @@ -2893,7 +2893,7 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) { npy_timedelta __pyx_r; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1011 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1011 * returns the int64 value underlying scalar numpy timedelta64 object * """ * return (obj).obval # <<<<<<<<<<<<<< @@ -2903,7 +2903,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval; goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1007 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1007 * * * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<< @@ -2916,7 +2916,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject return __pyx_r; } -/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 +/* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 * * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<< @@ -2927,7 +2927,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) { NPY_DATETIMEUNIT __pyx_r; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1018 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1018 * returns the unit part of the dtype for a numpy datetime64 object. * """ * return (obj).obmeta.base # <<<<<<<<<<<<<< @@ -2935,7 +2935,7 @@ static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObjec __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base); goto __pyx_L0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 * * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<< @@ -3026,7 +3026,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":945 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":945 * __pyx_import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< @@ -3037,7 +3037,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":951 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":951 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< @@ -3423,7 +3423,7 @@ if (!__Pyx_RefNanny) { if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-tm33zzpl/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 + /* "../../../../../private/var/folders/00/_0gc_srn5sx936prflc1ln3c0181xj/T/pip-build-env-d366rzyt/overlay/lib/python3.8/site-packages/numpy/__init__.pxd":1014 * * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<< diff --git a/tests/gmprocess/waveform_processing/clipping/clipping_ann_test.py b/tests/gmprocess/waveform_processing/clipping/clipping_ann_test.py new file mode 100644 index 000000000..867c94b3d --- /dev/null +++ b/tests/gmprocess/waveform_processing/clipping/clipping_ann_test.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import numpy as np +from gmprocess.waveform_processing.clipping.clipping_ann import clipNet + + +def test_nnet(): + # Instantiate the clipNet class + cN = clipNet() + + # Input list: + # mag, dist, 6M amplitude check, histogram check, ping check. + input = [7.3, 201.6630574, 0, 0, 0] + prob_clip = cN.evaluate(input)[0][0] + np.testing.assert_allclose(prob_clip, 0.012965727663876212) + + input = [7.3, 223.0055032, 0, 1, 0] + prob_clip = cN.evaluate(input)[0][0] + np.testing.assert_allclose(prob_clip, 0.853443027535108) + + input = [5.7, 59.8610546076, 0, 1, 1] + prob_clip = cN.evaluate(input)[0][0] + np.testing.assert_allclose(prob_clip, 0.9898910827653756) + + +if __name__ == '__main__': + test_nnet() diff --git a/tests/gmprocess/waveform_processing/clipping/histogram_test.py b/tests/gmprocess/waveform_processing/clipping/histogram_test.py index 334c2fecd..c610c3cb9 100644 --- a/tests/gmprocess/waveform_processing/clipping/histogram_test.py +++ b/tests/gmprocess/waveform_processing/clipping/histogram_test.py @@ -57,6 +57,5 @@ def test_all_num_clip_intervals(): if __name__ == '__main__': - os.environ['CALLED_FROM_PYTEST'] = 'True' test_num_clip_intervals() test_all_num_clip_intervals()