File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,6 @@ async def info():
4545 return info_dict
4646
4747
48- @app .get ("/test-sentry" )
49- async def test_sentry ():
50- raise Exception ("Testing sentry integration" )
51-
52-
5348@app .exception_handler (TimeseriesTimeoutError )
5449async def timeseries_timeout_error_handler (
5550 request : Request , exc : TimeseriesTimeoutError
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def rolling_z_score(xs, width):
3838 for i in numba .prange (n ):
3939 m = np .nanmean (xs [i : (i + width )])
4040 s = np .nanstd (xs [i : (i + width )])
41- results [i ] = np .nan if s == 0 else xs [i + width ] - m / s
41+ results [i ] = np .nan if s == 0 else ( xs [i + width ] - m ) / s
4242 return results
4343 """ FIXME: consider converting xs numpy array into a pandas DataFrame and use something like the following
4444 from https://stackoverflow.com/questions/47164950/compute-rolling-z-score-in-pandas-dataframe
You can’t perform that action at this time.
0 commit comments