Skip to content

Report Generator: graph_and_report gives error #2862

@jadamchick

Description

@jadamchick

When following the example laid out in the wiki / pages about how to use graph_and_report, using the exact example (with updated filter name to reflect current outputs) or a similar format with different filters, it gives an error and does not produce a graph.

The error is:
Error plotting 'Last Year's Average Cow Body Weight (kg)' data set. Unforeseen error 'NoneType' object has no attribute 'start_date' when trying to graph data.

Steps to Reproduce

  1. Include the following in a report filter:
    {
    "name": "Last Year's Average Cow Body Weight (kg)",
    "filters": [
    "AnimalModuleReporter.report_herd_statistics_data.avg_cow_body_weight"
    ],
    "slice_start": -365,
    "graph_and_report": true,
    "graph_details": {
    "type": "plot",
    "filters": [
    "AnimalModuleReporter.report_herd_statistics_data.avg_cow_body_weight"
    ]
    }
    }

Note: this is copy/pasted from the example in the wiki, just with the filter updated from AnimalModuleReporter.report_life_cycle_manager_data.avg_cow_body_weight to AnimalModuleReporter.report_herd_statistics_data.avg_cow_body_weight to reflect updated output names

Context (Environment)

Detailed Description

Possible Implementation

Target Deadline

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions