Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on processing file #5

Open
skyksandr opened this issue Jul 20, 2018 · 1 comment
Open

Error on processing file #5

skyksandr opened this issue Jul 20, 2018 · 1 comment

Comments

@skyksandr
Copy link
Member

skyksandr commented Jul 20, 2018

While uploading a file:
09-27-32.CSV.zip
App get following response:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>
Exception on /api/v1/scan [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/app/tracksegmenter/views.py", line 11, in prediction
    processing_result = DataProcessor(posted_data).call()
  File "/opt/app/tracksegmenter/processing/data_processor.py", line 24, in call
    self.preprocess_data()
  File "/opt/app/tracksegmenter/processing/data_processor.py", line 35, in preprocess_data
    self.preprocessed_df = Preprocessor(self.raw_df).call()
  File "/opt/app/tracksegmenter/processing/preprocessing.py", line 36, in call
    df['altitude_std'] = (df['hMSL'].rolling(window='5s').std()).bfill().ffill()
  File "/usr/local/lib/python3.6/site-packages/pandas/core/generic.py", line 6195, in rolling
    on=on, axis=axis, closed=closed)
  File "/usr/local/lib/python3.6/site-packages/pandas/core/window.py", line 2052, in rolling
    return Rolling(obj, **kwds)
  File "/usr/local/lib/python3.6/site-packages/pandas/core/window.py", line 86, in __init__
    self.validate()
  File "/usr/local/lib/python3.6/site-packages/pandas/core/window.py", line 1087, in validate
    self._validate_monotonic()
  File "/usr/local/lib/python3.6/site-packages/pandas/core/window.py", line 1119, in _validate_monotonic
    "monotonic".format(formatted))
ValueError: index must be monotonic
@skyksandr skyksandr mentioned this issue Jul 25, 2018
3 tasks
@xird
Copy link

xird commented Aug 1, 2023

This is the same issue as skyderby/skyderby#434

From line 5183 onward, there are timestamps in incorrect order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants