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 in scatter plot in portfolio report #4

Closed
abekhit opened this issue Jan 16, 2019 · 1 comment
Closed

Error in scatter plot in portfolio report #4

abekhit opened this issue Jan 16, 2019 · 1 comment

Comments

@abekhit
Copy link
Collaborator

abekhit commented Jan 16, 2019

Traceback (most recent call last):
  File "run.py", line 13, in <module>
    run_batch(start_id = 1, end_id = 15, saving_target=2, cached_weather=False, batch_report=True)
  File "C:\better\better\demo.py", line 146, in run_batch
    report_portfolio.generate_portfolio_report(report_path)
  File "C:\better\better\report.py", line 806, in generate_portfolio_report
    scatter_html = self.add_2d_scatter_plot(self.portfolio.df_bldg_summary)
  File "C:\better\better\report.py", line 714, in add_2d_scatter_plot
    c_str = v_rgb_str[i]
IndexError: string index out of range

@tsbyq
Copy link
Contributor

tsbyq commented Jan 30, 2019

In the old version, the code randomly picks a color for a each location. It went wrong when there are too many locations. Issue no longer exists after removing the color-coding by locations.

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

No branches or pull requests

2 participants