usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

Errors on the web server terminal when I try to generate a power vs time plot on last live streaming spectrograph #165

Closed jkubNTIA closed 9 years ago

jkubNTIA commented 9 years ago

Test configuration: I am running via https, authentication = false I am running python unit-tests/test-streaming-socket.py -data ../../DataSpectrumBrowser/LTE_UL_bc17_ts109_stream_30m.dat

Steps to repeat:

  1. Choose sensor on the map
  2. Press "live streaming data" button
  3. Press "show last capture"
  4. Click on the map and see the following error on the server gunicorn terminal (I run gunicorn from the command line via: gunicorn -w 1 -k flask_sockets.worker flaskr:app -b '0.0.0.0:8000' --debug --log-file - --error-logfile -) Unexpected error: <type 'exceptions.TypeError'> (<type 'exceptions.TypeError'>, TypeError('range() integer end argument expected, got float.',), <traceback object at 0x7f229c0e4ef0>) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 2037, in generatePowerVsTimeWorker return GeneratePowerVsTime.generatePowerVsTimeForFFTPower(msg, freqHz, sessionId) File "/home/jkub/Documents/SpectrumBrowser/flask/GeneratePowerVsTime.py", line 97, in generatePowerVsTimeForFFTPower timeArray = [(leftColumnsToExclude + i) * miliSecondsPerMeasurement for i in range(0, nM)] TypeError: range() integer end argument expected, got float. Unexpected error: <type 'exceptions.TypeError'> (<type 'exceptions.TypeError'>, TypeError('range() integer end argument expected, got float.',), <traceback object at 0x7f229c0e4680>) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 167, in testcase_decorator return original_function(_args, _kwargs) File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 2037, in generatePowerVsTimeWorker return GeneratePowerVsTime.generatePowerVsTimeForFFTPower(msg, freqHz, sessionId) File "/home/jkub/Documents/SpectrumBrowser/flask/GeneratePowerVsTime.py", line 97, in generatePowerVsTimeForFFTPower timeArray = [(leftColumnsToExclude + i) \ miliSecondsPerMeasurement for i in range(0, nM)] TypeError: range() integer end argument expected, got float. token = user-143031361446921374188:ECR16W4XS
jkubNTIA commented 9 years ago

Works with new master branch