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

bhealth.metric_wrappers.Wrapper with the argument csv_prep generates exception #13

Open
perellonieto opened this issue Sep 18, 2019 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@perellonieto
Copy link
Collaborator

On every example in the examples folder, if the csv_prep argument when creating a Wrapper is set, the plot_metrics will raise the following exception

Traceback (most recent call last):
  File "synthetic_long_example.py", line 210, in <module>
    figures_dict = plot_metrics(metric_container_daily, date_container_daily, labels_=labels)
  File "../bhealth/visualisations.py", line 96, in plot_metrics
    for key in proportion:
TypeError: 'float' object is not iterable

To avoid the exception I have removed the optional argument from all the examples, but needs to be investigated.

@mkoz71
Copy link
Collaborator

mkoz71 commented Sep 20, 2019

This seems to change whenever you use run_metric_array, as opposed to run_metric_array_csv. I suspect the csv parameter sets one of the metrics as a float, when the function expects integers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants