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

When location data is not different funf analyze results in a error #97

Open
GoogleCodeExporter opened this issue Sep 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Collect data using location probe with the same location. (keep the phone on 
the same place for couple of minutes)
2. Use the funf_analyze.py to visualize

Following error is reported 

Traceback (most recent call last):
  File "funf_analyze.py", line 84, in <module>
    viz_gen.main()
  File "/home/zombie/Projects/gsoc/funf-open-sensing-framework.samples/funf_analyze/viz_gen.py", line 395, in main
    viz.generate()
  File "/home/zombie/Projects/gsoc/funf-open-sensing-framework.samples/funf_analyze/viz_gen.py", line 40, in generate
    self.generate_location_vis()
  File "/home/zombie/Projects/gsoc/funf-open-sensing-framework.samples/funf_analyze/viz_gen.py", line 107, in generate_location_vis
    hm.heatmap(location_data, "classic.png", dotsize=50)
  File "/home/zombie/Projects/gsoc/funf-open-sensing-framework.samples/funf_analyze/heatmap/__init__.py", line 93, in heatmap
    tmp.paste( dot, self._translate([x,y]) )
  File "/home/zombie/Projects/gsoc/funf-open-sensing-framework.samples/funf_analyze/heatmap/__init__.py", line 244, in _translate
    x = (x - self.minXY[0]) / float(self.maxXY[0] - self.minXY[0])
ZeroDivisionError: float division by zero





Original issue reported on code.google.com by [email protected] on 25 Apr 2013 at 12:52

Attachments:

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

No branches or pull requests

1 participant