Skip to content

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

Open

Description

@perellonieto

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.

Activity

  1. added
    bugSomething isn't working
    questionFurther information is requested
    on Sep 18, 2019
  2. mkoz71 commented on Sep 20, 2019

    @mkoz71
    Collaborator

    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

Metadata

Metadata

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions