Skip to content

Fix behaviour for (product or feed inventory?) TimeSeries #1

@maxschalz

Description

@maxschalz

The following lines indicate how much feed is present in the enrichment's feed ivnentory.
However, they add that information to a potentially wrong timeseries.

for (int i = 0; i < feed_commods.size(); ++i) {
RecordTimeSeries<double>("supply" + feed_commods[i], this,
feed_inv[i].quantity());

One possibility to fix this would be to add a pre- or suffix to the TimeSeries name, to get something like this

 for (int i = 0; i < feed_commods.size(); ++i) { 
   RecordTimeSeries<double>("supply" + feed_commods[i] + "feed_inv",
                            this, feed_inv[i].quantity());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions